SHARE
TWEET

Matrix stack

Archon Feb 16th, 2012 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data
Top