Re: Texture NPOT
Posted by
elect on
Sep 14, 2015; 11:52am
URL: https://forum.jogamp.org/Texture-NPOT-tp4035280p4035295.html
paolofuse wrote
gl.glVertexPointer(3, GL2.GL_FLOAT, 0, 0l);
gl.glEnableClientState(GL2.GL_TEXTURE_COORD_ARRAY);
gl.glBindBuffer(GL2.GL_ARRAY_BUFFER, texVBO[0]);
gl.glTexCoordPointer(2, GL2.GL_FLOAT, 0, 0l);
Again this works only with POT textures.
Thanks.
These calls are still deprecated..
In modern OpenGL you decide what your data represents, either vertex position, normal, color, texture coordinates or whatever.
I'll write a small example. Just tell me which kind of image are you uploading