Changeset 3502 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Mar 11, 2005, 6:22:15 PM (20 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/skysphere.cc
r3484 r3502 106 106 void Skysphere::updatePosition(Vector sphereCenter) 107 107 { 108 this->sphereCenter = sphereCenter; 108 //this->sphereCenter = sphereCenter; /* absolete */ 109 this->absCoordinate = sphereCenter; 109 110 } 110 111 112 113 void Skysphere::tick(float time) 114 {} 111 115 112 116 /** … … 120 124 skyMaterial->select(); 121 125 glPushMatrix(); 122 glTranslatef(this->sphereCenter.x,this->sphereCenter.y,this->sphereCenter.z);126 //glTranslatef(this->sphereCenter.x,this->sphereCenter.y,this->sphereCenter.z); /* absolete */ 123 127 128 glTranslatef(this->absCoordinate.x, 129 this->absCoordinate.y, 130 this->absCoordinate.z); 131 132 124 133 glRotatef(-30, 1, 0, 0); 125 134 glRotatef(95.0f, 0.0f, 0.0f, 1.0f); -
orxonox/trunk/src/world_entities/skysphere.h
r3484 r3502 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 … … 33 34 34 35 void updatePosition(Vector sphereCenter); 35 void draw(); 36 37 virtual void draw(); 38 virtual void tick(float time); 36 39 37 40 private: 38 41 GLUquadricObj *sphereObj; //!< A Placeholder for the SkySphere. 39 42 Material *skyMaterial; //!< A Material for the SkySphere. 43 40 44 Vector sphereCenter; //!< Center of the SkySphere. 41 45 float sphereRadius; //!< Radius of the SkySphere. This should match the frustum maximum range.
Note: See TracChangeset
for help on using the changeset viewer.