Login  Register

Re: Has my texture already been flipped?

Posted by fmorat on Mar 12, 2022; 9:21pm
URL: https://forum.jogamp.org/Has-my-texture-already-been-flipped-tp4041681p4041686.html

So, I'm still not sure of what is going on. I know this is obvious to you guys but
please bear with me.

In OpenGL the texture origin is the lower-left corner. This causes the image
to be flipped. However, I'm noticing that when loading the image
and displaying, it is not being flipped. It is being displayed correctly.

And this is what I want to know: Is the method call TextureIO.newTexture(new File(textureFileName), false);
flipping the image?  By your answer I can only assume that YES. However, I do not want
to assume (I've been burned too many times by assuming stuff).

Please help me, is it being flipped?