Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3411 in orxonox.OLD for orxonox/branches/dave/src/world.cc


Ignore:
Timestamp:
Feb 20, 2005, 4:21:42 PM (19 years ago)
Author:
dave
Message:

branches/dave/src:so bensch, hab das ganze umbenannt: skysphere.cc und skysphere.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/dave/src/world.cc

    r3410 r3411  
    2828#include "helper_parent.h"
    2929#include "glmenu_imagescreen.h"
    30 #include "skybox.h"
     30#include "skysphere.h"
    3131#include "importer/material.h"
    3232
     
    292292           
    293293            // create skybox
    294             this->skybox =new Skybox();
     294            this->skysphere =new Skysphere();
    295295                   
    296296                   
     
    389389  boden->setIllum(3);
    390390 
    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   
    404392  objectList = glGenLists(1);
    405393  glNewList (objectList, GL_COMPILE);
     
    595583 
    596584  glEnable(GL_TEXTURE_2D);
    597   sky->select();
    598   skybox->draw();
     585 
     586  skysphere->draw();
    599587 
    600588}
     
    679667    }
    680668 
    681   skybox->updatePosition(localPlayer->absCoordinate.x,localPlayer->absCoordinate.y,localPlayer->absCoordinate.z);
     669  skysphere->updatePosition(localPlayer->absCoordinate.x,localPlayer->absCoordinate.y,localPlayer->absCoordinate.z);
    682670 
    683671  //for( int i = 0; i < tracklen; i++) track[i].tick (seconds);
Note: See TracChangeset for help on using the changeset viewer.