Evander
Evander

Reputation: 76

How do I get all supported resolutions of my video card in SDL2?

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

Answers (1)

Serkan Pekçetin
Serkan Pekçetin

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

Related Questions