Changeset 3796 in orxonox.OLD for orxonox/trunk/src/world_entities/skybox.h
- Timestamp:
- Apr 13, 2005, 4:52:55 PM (19 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/skybox.h
r3794 r3796 1 1 /*! 2 \file sky sphere.h3 \brief Definition of the Sky sphere, that handles the Display of an atmosphere oforxonox.2 \file skybox.h 3 \brief Definition of the SkyBox, that handles the Display of an atmosphere for orxonox. 4 4 5 A Sky Sphereis always centered at the current working Camera, and will only obey the cameras5 A SkyBox is always centered at the current working Camera, and will only obey the cameras 6 6 movment but not its rotation. 7 8 \todo self-rotation9 \todo handle reference to parent-object10 7 */ 11 8 12 #ifndef _SKY SPHERE_H13 #define _SKY SPHERE_H9 #ifndef _SKYBOX_H 10 #define _SKYBOX_H 14 11 15 12 /* INCLUDES */ … … 20 17 class Vector; 21 18 22 //! A Class to handle a Sky Sphere23 class Sky sphere: public WorldEntity19 //! A Class to handle a Skybox 20 class SkyBox : public WorldEntity 24 21 { 25 22 26 23 public: 27 Skysphere(char* fileName = NULL); 28 virtual ~Skysphere(); 29 void destroy(); 24 SkyBox(char* fileName = NULL); 25 virtual ~SkyBox(); 30 26 31 void set Radius(float radius);27 void setSize(float size); 32 28 void setTexture(char* fileName); 33 29 … … 35 31 36 32 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. 40 35 41 void initialize(char* fileName);42 36 }; 43 37 44 #endif /* _SKY SPHERE_H */38 #endif /* _SKYBOX_H */ 45 39 46 40
Note: See TracChangeset
for help on using the changeset viewer.