• Advertisement
Sign in to follow this  

texture Key Color

This topic is 4405 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
You could do it manually when you load the texture file. But I think the easiest way is with the alpha channel of the file. I use the TGA file format and automatically my renderer uses the alpha channel that my TGA loader grabs from the TGA file, then it is rendered that way. It only takes a couple of lines, even without my classes.

Share this post


Link to post
Share on other sites
OpenGL doesn't provide you any funtions to load image, you'll need to write your own or use existing libraries. In case you want to do it yourself, take a look at Wotsit for lists of files format. Image libraries are also freely available (PaintLib for example), however in most cases the provided libraries are overwhelming - writing your own is somewhat simpler.
Which way do you prefer ?.

You may want to take a look at NeHe for OpenGL tutorials.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement