Changeset 3411 in orxonox.OLD for orxonox/branches/dave/src/world.cc
- Timestamp:
- Feb 20, 2005, 4:21:42 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/dave/src/world.cc
r3410 r3411 28 28 #include "helper_parent.h" 29 29 #include "glmenu_imagescreen.h" 30 #include "sky box.h"30 #include "skysphere.h" 31 31 #include "importer/material.h" 32 32 … … 292 292 293 293 // create skybox 294 this->sky box =new Skybox();294 this->skysphere =new Skysphere(); 295 295 296 296 … … 389 389 boden->setIllum(3); 390 390 391 //Initializing the Sky, and loading a Texture into it. 392 //GLUquadricObj *sphereObj=0; 393 //sphereObj=gluNewQuadric(); 394 //gluQuadricTexture(sphereObj,GL_TRUE); 395 396 397 sky = new Material("Sky"); 398 sky->setDiffuseMap("../data/pictures/sky-replace.jpg"); 399 sky->setIllum(3); 400 401 402 403 391 404 392 objectList = glGenLists(1); 405 393 glNewList (objectList, GL_COMPILE); … … 595 583 596 584 glEnable(GL_TEXTURE_2D); 597 sky->select();598 sky box->draw();585 586 skysphere->draw(); 599 587 600 588 } … … 679 667 } 680 668 681 sky box->updatePosition(localPlayer->absCoordinate.x,localPlayer->absCoordinate.y,localPlayer->absCoordinate.z);669 skysphere->updatePosition(localPlayer->absCoordinate.x,localPlayer->absCoordinate.y,localPlayer->absCoordinate.z); 682 670 683 671 //for( int i = 0; i < tracklen; i++) track[i].tick (seconds);
Note: See TracChangeset
for help on using the changeset viewer.