OpenGL & SDL Blitting w/ Alpha

Hello…

I am looking into the new combined OpenGL 3D rendering and SDL 2D
blitting capabilities… This functionality is made available through
the use of SDL_SetVideoMode with the SDL_OPENGLBLIT option.

I noticed in a few demos that any alpha information is say a surface
that is being blitted is lost when using the SDL_OPENGLBLIT mode. A
couple questions -

Currently is there anyway to make this work without going entirely to
OpenGL (i.e. glDrawPixels or glTexImage2D ) so that a 2D blitted SDL
surface “blends” with an OpenGL rendered scene?

If not, any chance at getting this added or at least a pointer to where
would be a good place to start???

Open to all suggestions…

Thanks,

-Smitty–


  • 101-ISM: The tendency to pick apart, often in minute detail, all
    aspects of life using half-understood pop psychology as a tool.
    _____________________________________________________
    Dave Schmitz Interact-TV
    smitty at interact-tv.com http://www.interact-tv.com
    Ph: 720.406.9399 Fax: 720.406.8424

I noticed in a few demos that any alpha information is say a surface
that is being blitted is lost when using the SDL_OPENGLBLIT mode.

Depends on how the blit is done. If SDL_SRCALPHA is not set, then
SDL_BlitSurface() should just copy the pixels, including the alpha channel.

(And please don’t post in HTML.)