[SDL] OpenGL in linux

Joseph Carter knghtbrd at bluecherry.net
Sat Jul 20 17:58:01 PDT 2002


On Sat, Jul 20, 2002 at 03:36:17PM -0700, Michael Cowart wrote:
>         printf ("OpenGL active\n");
>         SDL_GL_SetAttribute( SDL_GL_RED_SIZE, 8 );
>         SDL_GL_SetAttribute( SDL_GL_GREEN_SIZE, 8 );
>         SDL_GL_SetAttribute( SDL_GL_BLUE_SIZE, 8 );
>         SDL_GL_SetAttribute (SDL_GL_ALPHA_SIZE, 8 );
>         SDL_GL_SetAttribute( SDL_GL_DEPTH_SIZE, 32 );
>         SDL_GL_SetAttribute( SDL_GL_DOUBLEBUFFER, 0 );

Hmm..

You sure you want to require 32bpp framebuffer and depth buffer?  You sure
you're running at the right depth?  XF86Config file should have
DefaultDepth 24 under Section "Screen" or the above will not work.
Something to check, anyway.

Note, you can probably set all of those to 1 except for SDL_GL_ALPHA_SIZE
(which should be 0) for maximum compatibility.  No promise it will not
look like crap if someone tries to use it on crappy hardware, but at least
it'll run..

-- 
Joseph Carter <knghtbrd at bluecherry.net>            What're you looking at?
 
<Culus> Ben: Do you solumly swear to read you debian email once a day and
        do not permit people to think you are MIA?
<Ben> Culus: i do so swear

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20020720/5f458cd0/attachment-0008.pgp>


More information about the SDL mailing list