Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. glColor3f(1.0, 0.0, 0.0);
  2. glPushMatrix();
  3. glTranslatef(0.0, 5.0, 0.0);
  4. glRotatef(45.0, 0, 1, 0);
  5. glScalef(4.23, 10.0, 4.23);
  6. glutSolidCube(1);
  7. glPopMatrix();
  8. glColor3f(0.0, 1.0, 0.0);
  9. glPushMatrix();
  10. glTranslatef(0.0, 11.5, 0.0);
  11. glScalef(8.0, 3.0, 8.0);
  12. glutSolidCube(1);
  13. glPopMatrix();
  14. glColor3f(0.2, 0.2, 0.2);
  15. glPushMatrix();
  16. glScalef(2.0, 2.0, 2.0);
  17. glTranslatef(1.5, 7.0, -1.5);
  18. glutSolidCube(1);
  19. glTranslatef(-3.0, 0.0, 0.0);
  20. glutSolidCube(1);
  21. glTranslatef(0.0, 0.0, 3.0);
  22. glutSolidCube(1);
  23. glTranslatef(3.0, 0.0, 0.0);
  24. glutSolidCube(1);
  25. glPopMatrix();}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement