Changeset 3605 in orxonox.OLD for orxonox/branches/levelloader/src/world_entities/skysphere.h
- Timestamp:
- Mar 18, 2005, 11:52:15 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/world_entities/skysphere.h
r3499 r3605 15 15 /* INCLUDES */ 16 16 #include "p_node.h" 17 #include "world_entity.h" 17 18 18 19 /* FORWARD DEFINITION */ … … 21 22 22 23 //! A Class to handle a SkySphere 23 class Skysphere : public PNode24 class Skysphere : public WorldEntity 24 25 { 25 26 … … 27 28 Skysphere(); 28 29 Skysphere(char* fileName); 29 ~Skysphere(); 30 virtual ~Skysphere(); 31 void destroy(); 30 32 31 33 void setRadius(float radius); 32 34 void setTexture(char* fileName); 33 35 34 void updatePosition(Vector sphereCenter); 35 void draw(); 36 virtual void draw(); 36 37 37 38 private: 38 39 GLUquadricObj *sphereObj; //!< A Placeholder for the SkySphere. 39 40 Material *skyMaterial; //!< A Material for the SkySphere. 40 Vector sphereCenter; //!< Center of the SkySphere.41 41 float sphereRadius; //!< Radius of the SkySphere. This should match the frustum maximum range. 42 43 42 44 43 void initialize(char* fileName); 45 44 };
Note: See TracChangeset
for help on using the changeset viewer.