Possible screen resolutions in C/C++
Hi!
I am writing a game in OpenGL and I have encountered a problem. I cannot find a way to get all possible screen resolutions. SDL is not much of help unfortunately as SDL_ListModes tells me that "all resolutions are supported" which is pretty much useless :/ I have been looking for the xrandr code, and I found it a bit overwhelming :/ Can anyone help me find a solution, or at least provide some hints? thanks :) |
SDL_GetVideoInfo
Quote:
|
Thanks but SDL_GetVideoInfo is also useless as it only gives me the CURRENT resolution :/
|
Code:
std::list<LVD::Renderer::Resoultion> create_mode_list() |
Do you mean
640x480, 800x600, 1024x768, 1152x864, 1280x768, 1280x960, 1280x1024 like the settings in 'gl-117' ? http://www.heptargon.de/gl-117/gl-117.html (( gl-117-1.3.2-src/src/conf.cpp )) ..... Other OpenGL game with res. settings : Emilia Pinball http://pinball.sourceforge.net/ ..... |
All times are GMT -5. The time now is 05:39 AM. |