[SDL] OpenGL and SDL, Weird Alpha Problem
James Turk
james at conceptofzero.net
Sat Nov 30 20:31:01 PST 2002
I am currently working on changing the drawing portion of my code to
OpenGL Ortho, while still using SDL for everything else. I have run
into a fairly strange error where my color-keyed images (using 255,0,255
for the key) are being drawn with a white background (the pink is simply
replaced with white). I am calling SDL_SetColorKey and then
SDL_DisplayFormatAlpha, which I was told is the correct way to use color
keys in OpenGL. (by the way, blending is enabled.. and I've tried
almost every combination of arguments to glBlendFunc that I could find.
Is there something else that needs to be done on the SDL side, or am I
missing some GL code somewhere)
More information about the SDL
mailing list