Login  Register

Re: [JOGL2] flip texture vertically

Posted by Demoscene Passivist on Nov 05, 2010; 6:13pm
URL: https://forum.jogamp.org/JOGL2-flip-texture-vertically-tp1849773p1849899.html

It basically the same with JOGL2, u only need to change some classnames:

BufferedImage tBufferedImage = ImageIO.read(new File(filename));
ImageUtil.flipImageVertically(tBufferedImage);
Texture tTexture = AWTTextureIO.newTexture(GLProfile.getDefault(), tBufferedImage, true);