[SDL] screen size and bit depth under OpenGL ?
romik12345 at lycos.co.uk
Fri Oct 11 13:40:01 PDT 2002
What about a cross-platform function to get the available OpenGL buffer
sizes (stencil, auxility, color, depth) for each mode?
Sam Lantinga wrote:
>>How to know what screen size and bits depth are avaible under OpenGL, before
>>SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags);
>In general SDL_ListModes() will list fullscreen modes that will work
>with OpenGL. You can usually specify either 16 or 32 bpp for an OpenGL
>video mode, and it's always safe to use the current depth, as given in
>the structure returned by SDL_GetVideoInfo().
More information about the SDL