Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3796 in orxonox.OLD for orxonox/trunk/src/world_entities/skybox.h


Ignore:
Timestamp:
Apr 13, 2005, 4:52:55 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: some simple implementation of a SkyBox

File:
1 copied

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/skybox.h

    r3794 r3796  
    11/*!
    2     \file skysphere.h
    3     \brief Definition of the Skysphere, that handles the Display of an atmosphere of orxonox.
     2    \file skybox.h
     3    \brief Definition of the SkyBox, that handles the Display of an atmosphere for orxonox.
    44
    5     A SkySphere is always centered at the current working Camera, and will only obey the cameras
     5    A SkyBox is always centered at the current working Camera, and will only obey the cameras
    66    movment but not its rotation.
    7 
    8     \todo self-rotation
    9     \todo handle reference to parent-object
    107*/
    118
    12 #ifndef _SKYSPHERE_H
    13 #define _SKYSPHERE_H
     9#ifndef _SKYBOX_H
     10#define _SKYBOX_H
    1411
    1512/* INCLUDES */
     
    2017class Vector;
    2118
    22 //! A Class to handle a SkySphere
    23 class Skysphere : public WorldEntity
     19//! A Class to handle a Skybox
     20class SkyBox : public WorldEntity
    2421{
    2522
    2623 public:
    27   Skysphere(char* fileName = NULL);
    28   virtual ~Skysphere();
    29   void destroy();
     24  SkyBox(char* fileName = NULL);
     25  virtual ~SkyBox();
    3026
    31   void setRadius(float radius);
     27  void setSize(float size);
    3228  void setTexture(char* fileName);
    3329
     
    3531
    3632 private:
    37   GLUquadricObj *sphereObj; //!< A Placeholder for the SkySphere.
    38   Material *skyMaterial;    //!< A Material for the SkySphere.
    39   float sphereRadius;       //!< Radius of the SkySphere. This should match the frustum maximum range.
     33  Material *material;    //!< A Material for the Skybox.
     34  float size;       //!< Radius of the Skybox. This should match the frustum maximum range.
    4035   
    41   void initialize(char* fileName); 
    4236};
    4337
    44 #endif  /* _SKYSPHERE_H */
     38#endif  /* _SKYBOX_H */
    4539
    4640
Note: See TracChangeset for help on using the changeset viewer.