PDA

View Full Version : What's wrong in my 2D rendering?



01-02-2005, 05:16 PM
Texture is loaded with top-down image data.
But following code is show me the fliped image.

Left-bottom = (0, 0), Right-top = (1,1) is dead in 2D rendering?

[CODE]glBegin( GL_TRIANGLE_STRIP );
glTexCoord2f( 0, 1 ); glVertex2f( 0, 0 );
glTexCoord2f( 0, 0 ); glVertex2f( 0, 256 );
glTexCoord2f( 1, 1 ); glVertex2f( 256, 0 );
glTexCoord2f( 1, 0 ); glVertex2f( 256, 256 );
glEnd();/[CODE]

gumby
01-03-2005, 10:03 AM
WHere is the camera?