FoxDie
01-06-2001, 11:42 PM
I'm try to put texture on single
triangle.For example:
glBegin(GL_TRIANGLES);
glTextCoord3f(-0.5,-0.3,1.0); glVertex3f(-0.5,-0.3,1.0);glTexCoord3f((-0.1,-0.3,1.0));glVertex3f(-0.1,-0.3,1.0);
glTexCoord3f3f(-0.3,-0.1,1.0);glVertex3f(-0.3,-0.1,1.0);
The texture was load from BMP file.
When I try to draw this bmp ,it was
properly function.Then I try it put
this texture on the triangle.
All need properties was seted.
Help me.
triangle.For example:
glBegin(GL_TRIANGLES);
glTextCoord3f(-0.5,-0.3,1.0); glVertex3f(-0.5,-0.3,1.0);glTexCoord3f((-0.1,-0.3,1.0));glVertex3f(-0.1,-0.3,1.0);
glTexCoord3f3f(-0.3,-0.1,1.0);glVertex3f(-0.3,-0.1,1.0);
The texture was load from BMP file.
When I try to draw this bmp ,it was
properly function.Then I try it put
this texture on the triangle.
All need properties was seted.
Help me.