- Timestamp:
- Feb 19, 2005, 4:53:50 PM (20 years ago)
- Location:
- orxonox/branches/dave/src
- Files:
-
- 3 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 -
orxonox/branches/dave/src/skybox.h
r3408 r3409 10 10 private: 11 11 GLUquadricObj *sphereObj; 12 float a,b,c; 12 13 13 14 … … 18 19 19 20 21 void updatePosition(float x,float y,float z); 22 void draw(); 20 23 21 void draw(WorldEntity* myplayer); 24 25 22 26 23 27 -
orxonox/branches/dave/src/world.cc
r3408 r3409 521 521 trackManager->debug(2); 522 522 delete trackManager; 523 524 525 526 glEnable(GL_TEXTURE_2D); 527 sky->select(); 528 529 523 530 524 glEndList(); 531 525 } … … 596 590 597 591 glCallList (objectList); 598 skybox->draw(localPlayer); 592 593 594 //After calling the list, draw the skysphere 595 596 glEnable(GL_TEXTURE_2D); 597 sky->select(); 598 skybox->draw(); 599 599 600 600 } … … 678 678 entity = entities->nextElement(); 679 679 } 680 681 680 printf("wird jetzt ausgefuehrt!\n"); 681 skybox->updatePosition(localPlayer->absCoordinate.x,localPlayer->absCoordinate.y,localPlayer->absCoordinate.z); 682 682 683 683 //for( int i = 0; i < tracklen; i++) track[i].tick (seconds);
Note: See TracChangeset
for help on using the changeset viewer.