Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. glScalef(scaling, scaling, scaling);
  2.  
  3. glRotatef(rotationX, 1.0, 0.0, 0.0);
  4. glRotatef(rotationY, 0.0, 1.0, 0.0);
  5. glRotatef(rotationZ, 0.0, 0.0, 1.0);
  6.  
  7. glBegin(GL_QUADS);
  8. qglColor(QColor::fromRgb(200, 200, 0));
  9. glVertex3f(1.0, 1.0, 0);
  10. glVertex3f(-1.0, 1.0, 0);
  11. glVertex3f(-1.0, -1.0, 0);
  12. glVertex3f(1.0, -1.0, 0);
  13. glEnd();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement