1 Dec 2002 05:29
OpenGL and SDL, Weird Alpha Problem
James Turk <james <at> conceptofzero.net>
2002-12-01 04:29:27 GMT
2002-12-01 04:29:27 GMT
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)
RSS Feed