Opengl visualid/directcolor

hello,
i need to make sdl open a truecolor visual for opengl but it seems to
insist on directcolor. i have tried the envvars for directcolor and
visuaul id but i think these just apply to 2d drawing from looking at
the x11 video gl source.
is there any way i can do this?

thanks
dunk

dunk wrote:

hello,
i need to make sdl open a truecolor visual for opengl but it seems to
insist on directcolor. i have tried the envvars for directcolor and
visuaul id but i think these just apply to 2d drawing from looking at
the x11 video gl source.
is there any way i can do this?

Yes. On most cards, if you run X at 16 bpp, you end up with 16 bpp
OpenGL visuals. If you run X at 32 bpp, you end up with 32 bpp visuals.

Stephane

hello,
i need to make sdl open a truecolor visual for opengl but it seems to
insist on directcolor. i have tried the envvars for directcolor and
visuaul id but i think these just apply to 2d drawing from looking at
the x11 video gl source.
is there any way i can do this?

Set this environment variable:
SDL_VIDEO_X11_NODIRECTCOLOR
… er, nevermind, that only works for 2D.

The code in CVS should support it for OpenGL though.

Any particular reason DirectColor is bad for your application?

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment