Player.cpp 219 B

123456789101112131415
  1. #include "Player.h"
  2. #include <GL/freeglut.h>
  3. Player::Player()
  4. {
  5. }
  6. void Player::setCamera()
  7. {
  8. glRotatef(rotation.x, 1, 0, 0);
  9. glRotatef(rotation.y, 0, 1, 0);
  10. glTranslatef(-position.x, -position.y, -position.z);
  11. }