[SDL] OpenGL, SDL and Transparent TGAs

Benjamin Grauer bensch at orxonox.ethz.ch
Sat Aug 5 18:31:49 PDT 2006


Hi

take SDL_image, is the easiest way when using SDL

code example:
http://svn.orxonox.net/orxonox/trunk/src/lib/graphics/importer/texture.h
http://svn.orxonox.net/orxonox/trunk/src/lib/graphics/importer/texture.cc


this is a image-loading class (not totally finished, but it works with 
tga's)

greets
    bensch

Stephen Sweeney wrote:
> Hi,
>
> Does SDL preserve the alpha channel in TGAs when loading images..? I'm 
> attempting to load a TGA with an alpha channel, turn it in to a texture and 
> then use it in OpenGL with the alpha preserved. (for things like metal 
> grills, etc).
>
> Anyone got any code I could take a look at...?
>
> Steve :)
>
> _______________________________________________
> SDL mailing list
> SDL at libsdl.org
> http://www.libsdl.org/mailman/listinfo/sdl
>   





More information about the SDL mailing list