Changeset 3807 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Apr 13, 2005, 9:12:08 PM (20 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/skybox.cc
r3806 r3807 138 138 this->rebuild(); 139 139 } 140 141 /** 142 \brief draws the SkyBox 143 */ 144 void SkyBox::draw() 145 { 146 glPushMatrix(); 147 glMatrixMode(GL_MODELVIEW); 148 Vector r = this->getAbsCoor(); 149 glTranslatef(r.x, r.y, r.z); 150 151 this->model->draw(); 152 153 glPopMatrix(); 154 } 155 140 156 141 157 /** -
orxonox/trunk/src/world_entities/skybox.h
r3803 r3807 17 17 class Vector; 18 18 19 //! A Class to handle a Sky box19 //! A Class to handle a SkyBox 20 20 class SkyBox : public WorldEntity 21 21 { 22 23 22 public: 24 23 SkyBox(char* fileName = NULL); … … 29 28 void setTextures(const char* top, const char* bottom, const char* left, const char* right, const char* front, const char* back); 30 29 30 virtual void draw(); 31 31 32 private: 32 33 void rebuild(); 33 34 34 35 Material **material; //!< A Material for the Skybox.36 float size; //!< Radius of the Skybox. This should match the frustum maximum range.35 Material **material; //!< Materials for the SkyBox. sorted by number (0-5) top, bottom, left, right, front, back 36 float size; //!< Size of the SkyBox. This should match the frustum maximum range. 37 37 38 38 };
Note: See TracChangeset
for help on using the changeset viewer.