My texture is rendering properly, but it is flipped on both the X and Y axis... How can I flip it back?
public static void render(Texture texture, Vector2f min, Vector2f max) {
texture.bind();
//GL11.glColor3f(0.5f,0.5f,1.0f);
GL11.glBegin(GL11.GL_QUADS);
GL11.glTexCoord2f(0f, 0f);
GL11.glVertex2f(min.x, min.y);
GL11.glTexCoord2f(1f, 0f);
GL11.glVertex2f(max.x, min.y);
GL11.glTexCoord2f(1f, 1f);
GL11.glVertex2f(max.x, max.y);
GL11.glTexCoord2f(0f, 1f);
GL11.glVertex2f(min.x, max.y);
GL11.glEnd();
}
I read that you switch the texture coordinates... I have tried changing them around and I don't know how to get them right. Can someone enlighten me?