I have the basic setup with lwjgl 09 cvs, and when I draw a quad qithout textures it is shown.
But I want to draw the texture but i dont understand the glTexCoord command.
This example is from one of the threads here…could someone explain why the coords in the glTexCoord2f command are different from the glVertex3f command?
Shouldnt they be the same to specify where the texture is going to be rendered? can the texture be rendered without a quad?
GL11.glBegin(GL11.GL_QUADS);
GL11.glTexCoord2f(0.0f, 0.0f);
GL11.glVertex3f(-width/2, -width/2, 0.0f);
GL11.glTexCoord2f(0.0f, 1.0f);
GL11.glVertex3f(-width/2, width/2, 0.0f);
GL11.glTexCoord2f(1.0f, 1.0f);
GL11.glVertex3f(width/2, width/2, 0.0f);
GL11.glTexCoord2f(1.0f, 0.0f);
GL11.glVertex3f(width/2, -width/2, 0.0f);
GL11.glEnd();
probably. I enabled it with a gl command and then the texture was rendered 