Jump to content
  • Advertisement
Sign in to follow this  
BloodLust666

texture Key Color

This topic is 4581 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!