Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3411 in orxonox.OLD


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

Location:
orxonox/branches/dave/src
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/dave/src/Makefile.am

    r3407 r3411  
    3737                 curve.cc \
    3838                 glmenu_imagescreen.cc\
    39                  skybox.cc
     39                 skysphere.cc
    4040
    4141
     
    8080                 glmenu_imagescreen.h \
    8181                 debug.h\
    82                  skybox.h
     82                 skysphere.h
    8383
    8484
  • orxonox/branches/dave/src/Makefile.in

    r3407 r3411  
    238238                 curve.cc \
    239239                 glmenu_imagescreen.cc\
    240                  skybox.cc
     240                 skysphere.cc
    241241
    242242noinst_HEADERS = ability.h \
     
    280280                 glmenu_imagescreen.h \
    281281                 debug.h\
    282                  skybox.h
     282                 skysphere.h
    283283
    284284EXTRA_DIST = orxonox.conf
  • 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);
  • orxonox/branches/dave/src/world.h

    r3408 r3411  
    1010#include "stdincl.h"
    1111#include "story_entity.h"
    12 #include "skybox.h"
     12#include "skysphere.h"
    1313class Material;
    1414
     
    8686
    8787  WorldEntity* localPlayer;
    88   Skybox* skybox;
    89   Material* sky;
     88  Skysphere* skysphere;
    9089  PNode* nullParent;
    9190 
Note: See TracChangeset for help on using the changeset viewer.