Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3763 in orxonox.OLD for orxonox/trunk/src/world_entities


Ignore:
Timestamp:
Apr 8, 2005, 7:48:05 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: skySphere now added to WorldEntity-List

Location:
orxonox/trunk/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/skysphere.cc

    r3608 r3763  
    3838
    3939/**
    40    \brief Standart Constructor
    41 */
    42 Skysphere::Skysphere()
    43 
    44   this->initialize("../data/pictures/sky-replace.jpg");
    45 }
    46 
    47 
    48 /**
    4940   \brief Constructs a SkySphere and takes fileName as a map.
    5041   \param fileName the file to take as input for the skysphere
     
    5243Skysphere::Skysphere(char* fileName)
    5344{
    54   this->initialize(fileName);
     45  if (fileName == NULL)
     46    this->initialize("../data/pictures/sky-replace.jpg");
     47  else
     48    this->initialize(fileName);
    5549}
    5650
     
    7468  PRINTF(1)("initializing the Skysphere with Material %s.\n", fileName);
    7569  this->sphereObj = gluNewQuadric();
     70  this->setMode(PNODE_MOVEMENT);
     71
    7672  gluQuadricTexture(this->sphereObj, GL_TRUE);
    7773  this->setRadius(1900.0);
  • orxonox/trunk/src/world_entities/skysphere.h

    r3608 r3763  
    2525
    2626 public:
    27   Skysphere();
    28   Skysphere(char* fileName);
     27  Skysphere(char* fileName = NULL);
    2928  virtual ~Skysphere();
    3029  void destroy();
Note: See TracChangeset for help on using the changeset viewer.