OpenGL 使用GLFW创建全屏窗口
GLFW库里面的glfwCreateWindow()函数是用来创建窗口的函数。
这样函数的原型是:
GLFWwindow* glfwCreateWindow(int width, int height, const char * title, GLFWmonitor * monitor, GLFWwindow * share);
介绍glfwCreateWindow()函数的使用方法
程序
bool isFullScreen = true;
GLFWmonitor* pMonitor = isFullScreen ? glfwGetPrimaryMonitor() : NULL;
GLFWwindow* window = glfwCreateWindow(WIDTH, HEIGHT, "Holographic projection", pMonitor, NU

本文介绍了如何利用GLFW库中的glfwCreateWindow()函数创建全屏窗口。通过示例程序展示了在OpenGL中指定显示屏进行全屏显示的方法,参考了相关教程和资源。
最低0.47元/天 解锁文章
3315

被折叠的 条评论
为什么被折叠?



