Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3420 in orxonox.OLD for orxonox/trunk/src/skysphere.h


Ignore:
Timestamp:
Feb 22, 2005, 8:14:18 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: skysphere: some new functionality.
now size and texture can be set externaly, but also get a default value:
radius: 200.0
texture: "../data/pictures/sky-replace.jpg"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/skysphere.h

    r3419 r3420  
    2424{
    2525 private:
    26   GLUquadricObj *sphereObj;
    27   Vector sphereCenter; //!< Center of the Skysphere
    28   Material *sky;       //!< A Material for the Sky
    29  
     26  GLUquadricObj *sphereObj; //!< A Placeholder for the SkySphere.
     27  Material *skyMaterial;    //!< A Material for the SkySphere.
     28  Vector sphereCenter;      //!< Center of the SkySphere.
     29  float sphereRadius;       //!< Radius of the SkySphere. This should match the frustum maximum range.
     30
    3031 public:
    3132  Skysphere();
    3233  Skysphere(char* fileName);
    3334  ~Skysphere();
     35
     36  void setRadius(float radius);
     37  void setTexture(char* fileName);
    3438
    3539  void updatePosition(Vector sphereCenter);
Note: See TracChangeset for help on using the changeset viewer.