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:

http://www.glfw.org/docs/latest/monitor.html

it give array of modes size given county (variable name shown in code). need loop through modes 0 less county.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -