Login  Register

[JOGL2] flip texture vertically

Posted by Djak on Nov 05, 2010; 5:51pm
URL: https://forum.jogamp.org/JOGL2-flip-texture-vertically-tp1849773.html

Hi,
I was using this code to load and flip vertically a texture in 1.1.1 :

BufferedImage img = ImageIO.read(new File(filename));
ImageUtil.flipImageVertically(img);
texture = TextureIO.newTexture(img, false);

but TextureIO.newTexture(BufferdImage, boolean) doesn't exist anymore.
Anyone could help me to have same result than before ?
Is there any way to do that directly with JOGL2 or do I need to find another way ?
Thanks in advance.