problems with tex mapping
i have problems with this piece of code:
glBegin(GL_QUADS);
glTexCoord2f(0.0f, 0.5f); glVertex3f(-2.0f, 0.7f,0.0f);
glTexCoord2f(1.0f, 0.5f); glVertex3f( 0.0f, 0.7f,0.0f);
glTexCoord2f(1.0f, 1.0f); glVertex3f( 0.0f, 1.7f,0.0f);
glTexCoord2f(0.0f, 1.0f); glVertex3f(-2.0f, 1.7f,0.0f);
glEnd();
glBegin(GL_QUADS);
glTexCoord2f(0.0f, 0.0f); glVertex3f( 0.0f, 0.7f,0.0f);
glTexCoord2f(1.0f, 0.0f); glVertex3f( 2.0f, 0.7f,0.0f);
glTexCoord2f(1.0f, 0.5f); glVertex3f( 2.0f, 1.7f,0.0f);
glTexCoord2f(0.0f, 0.5f); glVertex3f( 0.0f, 1.7f,0.0f);
glEnd();
i want to render a bitmap on 2 quads so that i have a nice logo on them. but between my 2 quads is little space so that the logo looks crappy. anyvody can help me? thanx...
cu
trigger
http://trigger.xenyon.net/
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement