/* Created by Dave, this file is actually quite similar to player.cc and so is skybox.h similar to player.h With that said, things should be clear:) */ #include "skybox.h" #include "stdincl.h" #include "vector.h" #include "world_entity.h" using namespace std; Skybox::Skybox() { //GLUquadricObj *sphereObj=0; sphereObj=gluNewQuadric(); gluQuadricTexture(sphereObj,GL_TRUE); } Skybox::~Skybox(){} void Skybox::draw(WorldEntity* myplayer) { glPushMatrix(); //Vector shift(myplayer->getRelCoor()); //glTranslatef(shift.x,shift.y,shift.z); glTranslatef(myplayer->absCoordinate.x,myplayer->absCoordinate.y,myplayer->absCoordinate.z); glRotatef(-180.0f,0.0f,0.0f,1.0f); glRotatef(0.0f,0.0,1.0f,0.0f); gluSphere(sphereObj,250.0f,20,20); glPopMatrix(); }