Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- glColor3f(1.0, 0.0, 0.0);
- glPushMatrix();
- glTranslatef(0.0, 5.0, 0.0);
- glRotatef(45.0, 0, 1, 0);
- glScalef(4.23, 10.0, 4.23);
- glutSolidCube(1);
- glPopMatrix();
- glColor3f(0.0, 1.0, 0.0);
- glPushMatrix();
- glTranslatef(0.0, 11.5, 0.0);
- glScalef(8.0, 3.0, 8.0);
- glutSolidCube(1);
- glPopMatrix();
- glColor3f(0.2, 0.2, 0.2);
- glPushMatrix();
- glScalef(2.0, 2.0, 2.0);
- glTranslatef(1.5, 7.0, -1.5);
- glutSolidCube(1);
- glTranslatef(-3.0, 0.0, 0.0);
- glutSolidCube(1);
- glTranslatef(0.0, 0.0, 3.0);
- glutSolidCube(1);
- glTranslatef(3.0, 0.0, 0.0);
- glutSolidCube(1);
- glPopMatrix();}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement