Login  Register

Re: Confused of Textures

Posted by gouessej on Jun 30, 2014; 3:29pm
URL: https://forum.jogamp.org/Confused-of-Textures-tp4032512p4032513.html

Hi

Use TextureIO to create a Texture object from a file or a stream containing your image. Call Texture.enable(GL) to enable the texture target and Texture.bind(GL) to bind this texture to the GL context. Then, perform your drawing, keep in mind that you have to provide texture coordinates, they should be stored in your vertex array or in your VBO. After that, call Texture.disable(GL).

Please be more accurate about what works and what doesn't.
Julien Gouesse | Personal blog | Website