Advertisement
Archon

Matrix stack

Feb 16th, 2012
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. setView(); //camera
  2. glPushMatrix();
  3. glPushMatrix();
  4. glPushMatrix();
  5.  
  6. glutSolidCube(5);
  7.  
  8. glTranslated(5, 0, 0);
  9. glutSolidCube(5);
  10.  
  11. glPopMatrix();
  12. glTranslated(0, 5, 0);
  13. glutSolidCube(5);
  14.  
  15. glPopMatrix();
  16. glTranslated(0, 0, 5);
  17. glutSolidCube(5);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement