GLFW切换窗口全屏模式 [英] GLFW Toggling Windowed-Fullscreen Mode

查看:388
本文介绍了GLFW切换窗口全屏模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用GLFW,我想知道如何切换全屏窗口模式。不更改分辨率,而是将窗口设置为顶部且无装饰。如果GLFW无法执行此操作,那么您建议使用哪个跨平台库来实现此目的?

I am using GLFW and I would like to know how to toggle full-screen windowed mode. Not changing the resolution, but instead setting the window to be on top and without decoration. If GLFW is not capable of doing this, then what cross platform library do you suggest to achieve this?

推荐答案

您可以告诉glfw全屏打开窗口。

You can tell glfw to open your window fullscreen.

glfwOpenWindow( width, height, 0, 0, 0, 0, 0, 0, GLFW_FULLSCREEN )

据我所知,您必须关闭并重新打开此窗口才能在窗口和全屏模式之间切换。

As far as I know you would have to close and reopen this window to switch between a window and fullscreen mode.

这篇关于GLFW切换窗口全屏模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆