Jump to content
  • Advertisement
Sign in to follow this  
Vortez

Black and green only texture?

This topic is 2609 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

Hi, i was wondering what would be the best way to draw an array of boolean value as a texture, with only black and green color.

So far, i've copied the bool array in a 2nd byte array and set every 'true' value to 255, then i tryed to use GL_GREEN instead of GL_LUMINANCE in the texture creation function, but with GL_GREEN i don't see anything. With GL_LUMINANCE it work but it's in white instead of green.

Any idea?

Edit: doh, just had to use glColor3f :P

Share this post


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

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!