[SDL] screen size and bit depth under OpenGL ?

Romi Kuntsman 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?

RK.


Sam Lantinga wrote:

>>Hi,
>>    
>>
>>How to know what screen size and bits depth are avaible under OpenGL, before 
>>to use:
>>    
>>
>>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 mailing list