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