Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

uncutno

Flipping Textures

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

Hello! Is there any simple way to flipp a texture? I dont talk about changing the order of the texture coords.... because, in my engine i can load bmp-files and tga-files... if i draw the two textures with the exact same code, the bmp turns out upside down! i use : auxDIBImageLoad(Filename) to get the bmp, so no file reading changes is posible :-) and my setup code is: glTexImage2D( GL_TEXTURE_2D, 0, 3, TextureImage[0]->sizeX, TextureImage[0]->sizeY, 0, GL_RGB, GL_UNSIGNED_BYTE, TextureImage[0]->data ); I know that its posible to draw to textures, i mean load the texture, and then draw it upside down to another texture, but to me, it should be posible to do it a simpler way! Anyone? -Anders-Oredsson-Norway-

Share this post


Link to post
Share on other sites
Advertisement

  • 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!