I just loaded a texture binded it and then drawn a cube with the texture. Here is the code:
t = texture
x,y = coordinates
t.bind();
glBegin(GL_QUADS);
glTexCoord2f(0,0);
glVertex2f(x,y);
glTexCoord2f(1,0);
glVertex2f(x + t.getImageWidth() ,y);
glTexCoord2f(1,1);
glVertex2f(x + t.getImageWidth() ,y + t.getImageHeight());
glTexCoord2f(0,1);
glVertex2f(x,y + t.getImageHeight());
glEnd();
SO , take a look at the normal image:
And when drawing the image (modelview matrix )
there are some weird lines and resizing
Ideas?