Newbie: Flipping
Can someone tell me how I can flip a triangle completly because I want to make a diamond and I can''t seem to do it..I want the opposite of this:
//2d triangle
glLoadIdentity();
glTranslatef(-2.5f,4.0f,-15.0f);
glRotatef(rtri2,0.0f,1.0f,0.0f);
glBegin(GL_TRIANGLES);
glVertex3f(0.0f, 1.0f, 0.0f);
glVertex3f(-1.0f,-1.0f, 0.0f);
glVertex3f(1.0f,-1.0f, 0.0f);
glEnd();
rtri2+=1;
This is a regular triangle like this:/\ i want one of this \/ the other way thanks a million..
plastickid
Too lazy to think!
Too lazy to think!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement