Reputation: 76
I have to get these resolutions, so I can put them in the video options of the game I'm creating.
Upvotes: 2
Views: 555
Reputation: 693
From SDL2 migration guide documentation, you simply iterate over
"SDL_GetDisplayMode() in a loop, SDL_GetNumDisplayModes() times"
to get the all available resolutions. How to interpret the display modes is laid out here.
Upvotes: 2