glfw 获取监视器 width/height
glfw get monitor width/height
我是 OpenGL 的新手,尤其是 glfw,想知道是否可以检索首选监视器的 width/height(在 C/C++ 中)?例如类似于:unsigned int width = glfwGetMonitorWidth(), height = glfwGetMonitorHeight();
如果您需要以像素为单位的显示器大小 - 您必须寻找 glfwGetVideoMode
如果您需要物理显示器尺寸(以毫米为单位)- glfwGetMonitorPhysicalSize
我是 OpenGL 的新手,尤其是 glfw,想知道是否可以检索首选监视器的 width/height(在 C/C++ 中)?例如类似于:unsigned int width = glfwGetMonitorWidth(), height = glfwGetMonitorHeight();
如果您需要以像素为单位的显示器大小 - 您必须寻找 glfwGetVideoMode
如果您需要物理显示器尺寸(以毫米为单位)- glfwGetMonitorPhysicalSize