private void renderAxes(Camera camera){
  glPushMatrix();
  glLoadIdentity();
  float rotX=camera.getRotation().x;
  float rotY=camera.getRotation().y;
  float rotZ=0;
  glRotatef(rotX,1.0f,0.0f,0.0f);
  glRotatef(rotY,0.0f,1.0f,0.0f);
  glRotatef(rotZ,0.0f,0.0f,1.0f);
  glLineWidth(2.0f);
  glBegin(GL_LINES);
  glColor3f(1.0f,0.0f,0.0f);
  glVertex3f(0.0f,0.0f,0.0f);
  glVertex3f(1.0f,0.0f,0.0f);
  glColor3f(0.0f,1.0f,0.0f);
  glVertex3f(0.0f,0.0f,0.0f);
  glVertex3f(0.0f,1.0f,0.0f);
  glColor3f(1.0f,1.0f,1.0f);
  glVertex3f(0.0f,0.0f,0.0f);
  glVertex3f(0.0f,0.0f,1.0f);
  glEnd();
  glPopMatrix();
}

private void renderAxes ( Camera camera ) { glPushMatrix ( ) ; glLoadIdentity ( ) ; float rotX = camera . getRotation ( ) . x ; float rotY = camera . getRotation ( ) . y ; float rotZ = 0 ; glRotatef ( rotX , 1.0f , 0.0f , 0.0f ) ; glRotatef ( rotY , 0.0f , 1.0f , 0.0f ) ; glRotatef ( rotZ , 0.0f , 0.0f , 1.0f ) ; glLineWidth ( 2.0f ) ; glBegin ( GL_LINES ) ; glColor3f ( 1.0f , 0.0f , 0.0f ) ; glVertex3f ( 0.0f , 0.0f , 0.0f ) ; glVertex3f ( 1.0f , 0.0f , 0.0f ) ; glColor3f ( 0.0f , 1.0f , 0.0f ) ; glVertex3f ( 0.0f , 0.0f , 0.0f ) ; glVertex3f ( 0.0f , 1.0f , 0.0f ) ; glColor3f ( 1.0f , 1.0f , 1.0f ) ; glVertex3f ( 0.0f , 0.0f , 0.0f ) ; glVertex3f ( 0.0f , 0.0f , 1.0f ) ; glEnd ( ) ; glPopMatrix ( ) ; }
renders the three axis in space ( for debugging purposes only
