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

Flipping Textures

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