Changeset 3409 in orxonox.OLD for orxonox/branches/dave/src/skybox.cc
- Timestamp:
- Feb 19, 2005, 4:53:50 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/dave/src/skybox.cc
r3408 r3409 27 27 Skybox::~Skybox(){} 28 28 29 void Skybox::updatePosition(float x,float y,float z) 30 { 31 this->a=x; 32 this->b=y; 33 this->c=z; 34 } 29 35 30 36 31 32 void Skybox::draw(WorldEntity* myplayer) 37 void Skybox::draw() 33 38 { 34 39 35 40 glPushMatrix(); 36 //Vector shift(myplayer->getRelCoor()); 37 //glTranslatef(shift.x,shift.y,shift.z); 38 glTranslatef(myplayer->absCoordinate.x,myplayer->absCoordinate.y,myplayer->absCoordinate.z); 41 glTranslatef(this->a,this->b,this->c); 42 //glTranslatef(myplayer->absCoordinate.x,myplayer->absCoordinate.y,myplayer->absCoordinate.z); 39 43 glRotatef(-180.0f,0.0f,0.0f,1.0f); 40 44 glRotatef(0.0f,0.0,1.0f,0.0f); 41 gluSphere(sphereObj,2 50.0f,20,20);45 gluSphere(sphereObj,200.0f,20,20); 42 46 glPopMatrix(); 43 47 … … 46 50 47 51 48 49 50 51 52 53
Note: See TracChangeset
for help on using the changeset viewer.