Re: How do I load texture array in jogl?
Posted by
gouessej on
Aug 11, 2018; 1:18pm
URL: https://forum.jogamp.org/How-do-I-load-texture-array-in-jogl-tp4039107p4039109.html
Hello
You can use TextureIO to create a TextureData instance but Texture uses only GL.GL_TEXTURE_2D and GL2.GL_TEXTURE_RECTANGLE_ARB as texture targets. You can pass the pixels of a TextureData instance returned by
getBuffer() to glTexSubImage3D.
Our PNG loader uses PNGJ under the hood, it should work except if you use an unsupported PNG format.