[SDL] OpenGL in linux
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 );
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
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
Size: 273 bytes
Desc: not available
More information about the SDL