Original Post
i know how to map a texture onto a quad but how with triangles?
glBegin(GL_TRIANGLES); glTexCoord(0, 1);//UV for upper left glVertex3f(-1, 1, -5); glTexCoord(1, 0);//UV for lower right glVertex3f(1, -1, -5); glTexCoord(1, 1);//UV for upper right glVertex3f(1, 1, -5);glEnd();***** * * * * ** *Quote:
Original post by C plus noob
there has to be a better way...... i dont really care how its mapped as long as its on there
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more