c++ - List available video modes using GLFW -
i trying retrieve list of available video modes monitor using glfw 3, i'm struggling understand glfw pages.
i can retrieve current video mode follows:
int county const glfwvidmode* modes = glfwgetvideomodes(glfwgetprimarymonitor(), &county); int width = modes->width; int height = modes->height;
but how retrieve list of video modes? should possible according this:
it give array of modes size given county
(variable name shown in code). need loop through modes
0 less county
.
Comments
Post a Comment