hi everybody…
i think i’ve found a bug… i wrote two java programs : one with lwjgl, and the other with gl4java (exactly the same program), but the output is different !
look at this piece of code :
gl.begin(GL.QUADS);
gl.texCoord2f(0.0f, 0.0f); gl.vertex3f(-13.3f, -10.0f, 10.0f);
gl.texCoord2f(1.0f, 0.0f); gl.vertex3f( 13.3f, -10.0f, 10.0f);
gl.texCoord2f(1.0f, 1.0f); gl.vertex3f( 13.3f, 10.0f, 10.0f);
gl.texCoord2f(0.0f, 1.0f); gl.vertex3f(-13.3f, 10.0f, 10.0f);
gl.end();
and look at the gl4java’s one :
gl.glBegin(GL_QUADS);
gl.glTexCoord2f(0.0f, 0.0f); gl.glVertex3f(-13.3f, -10.0f, 10.0f);
gl.glTexCoord2f(1.0f, 0.0f); gl.glVertex3f( 13.3f, -10.0f, 10.0f);
gl.glTexCoord2f(1.0f, 1.0f); gl.glVertex3f( 13.3f, 10.0f, 10.0f);
gl.glTexCoord2f(0.0f, 1.0f); gl.glVertex3f(-13.3f, 10.0f, 10.0f);
gl.glEnd();
you see, it’s the same things… but when i run the lwjgl program, the texture coordinates are inverted… i don’t know if you understand me because i don’t speak english very well (french…)…
please help… i can’t find a solution…
++
Ch*man