Hi, I am getting a big gap between my texture and the gap will change whenever I change the glTexCoor2d(x,y) and also the image size. It is kinda weird.Is there anything to solve this problem?
img.getTextureReference().setTextureWrap(GL_REPEAT,GL_REPEAT);
img.getTextureReference().setTextureMinMagFilter(GL_LINEAR,GL_LINEAR);
img.getTextureReference().bind();
glBegin(GL_QUADS);
glTexCoord2d(0.0,0.0); glVertex3f(-400, +250, +depth);//Left wall
glTexCoord2d(3.0,0.0); glVertex3f(-400, +250, -depth);
glTexCoord2d(3.0,1.0); glVertex3f(-400, -250, -depth);
glTexCoord2d(0.0,1.0); glVertex3f(-400, -250, +depth);
glEnd();
img.getTextureReference().unbind();