Re: FBObject Orientation/Scaling Issues
Posted by bgroenks96 on Feb 09, 2014; 5:01am
URL: https://forum.jogamp.org/SOLVED-FBObject-Orientation-Scaling-Issues-tp4031228p4031512.html
In this case, the problem was nothing more than that the glTexCoord calls have to be BEFORE the glVertex calls. Stupid FFP caveat that's easy to forget since most of us probably aren't used to dealing with it anymore.
gl.glBegin(GL2.GL_QUADS);
gl.glTexCoord2f(0, 0);
gl.glVertex2f(0, 0);
gl.glTexCoord2f(0, 1);
gl.glVertex2f(0, ht);
gl.glTexCoord2f(1, 1);
gl.glVertex2f(wt, ht);
gl.glTexCoord2f(1, 0);
gl.glVertex2f(wt, 0);
gl.glEnd();