[SDL] SDL_OPENGLBLIT and colorkeying?

Mattias Engdegård f91-men at nada.kth.se
Fri Jun 1 02:11:38 PDT 2001


>I know using SDL_OPENGLBLIT is slow and all, but as a first step of 
>converting an app over to using OpenGL for everything, I thought I would 
>try SDL_OPENGLBLIT just so I could see everything (albeit slower than it 
>should be).  Anyway, it works except that none of the colorkeying works 
>(the transparent color is showing up in the blit).  Is this a known 
>limitation of SDL_OPENGLBLIT or am I doing something wrong?

I think it should work - note that when using OPENGLBLIT, the "screen"
surface has an alpha channel. Exactly what format (depth and RGBA masks)
do your source and destination surfaces have? Do you use RLE? Is
SDL_SRCALPHA set on the source surface?




More information about the SDL mailing list