Original Post
what is needed to draw a textured rectangle on the screen in 2d-mode?
im doing the following:
-i have loaded a texture, i assume this works
-glEnable(GL_TEXTURE_2D);
-glColor(1,1,1);
-glBindTexture(GL_TEXTURE_2D, id);
-rendering:
glBegin(GL_QUADS); or glBegin(GL_TRIANGLES);
glTexCoord2f(u,v);
glVertex2f(x,y);
...
glEnd();
i have read the red book and this should be ok i think...
but i just get a white rectangle on the screen, no texture at all! it looks as if i didnt bind the texture!
i took the texture-loading code from a sample and it works.
are there any commands missing?
thanks for any help
cody