Changeset 3484 in orxonox.OLD for orxonox/trunk/src/world_entities
- Timestamp:
- Mar 10, 2005, 11:29:32 PM (20 years ago)
- Location:
- orxonox/trunk/src/world_entities
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/environment.cc
r3472 r3484 21 21 #include "world_entity.h" 22 22 #include "vector.h" 23 #include " importer/objModel.h"23 #include "objModel.h" 24 24 25 25 using namespace std; -
orxonox/trunk/src/world_entities/player.cc
r3474 r3484 19 19 #include "stdincl.h" 20 20 //#include "collision.h" 21 #include " importer/objModel.h"21 #include "objModel.h" 22 22 23 23 using namespace std; -
orxonox/trunk/src/world_entities/skysphere.cc
r3475 r3484 13 13 main-programmer: David Gruetter 14 14 co-programmer: Benjamin Grauer 15 16 Created by Dave: this file is actually quite similar to player.cc and so is 17 skybox.h similar to player.h 18 With that said, things should be clear:) 19 20 Edited by Bensch: more constructors, changeability, comments... 15 16 Created by Dave: this file is actually quite similar to player.cc and so is 17 skybox.h similar to player.h 18 With that said, things should be clear:) 19 20 Edited: 21 Bensch: more constructors, changeability, comments... 22 Patrick: giving it the common orxonox style, not much to do... good work Dave! 21 23 22 24 */ 23 25 24 #include " importer/material.h"26 #include "material.h" 25 27 #include "skysphere.h" 26 28 #include "stdincl.h" … … 75 77 } 76 78 79 77 80 /** 78 81 \brief sets the Radius of the Sphere. … … 84 87 } 85 88 89 86 90 /** 87 91 \brief Defines which texture should be loaded onto the skysphere. … … 92 96 this->skyMaterial->setDiffuseMap(fileName); 93 97 } 98 94 99 95 100 /** … … 104 109 } 105 110 111 106 112 /** 107 113 \brief draws the Skysphere … … 109 115 This part is normally precessed in the "Painting Phase". 110 116 */ 111 112 117 void Skysphere::draw() 113 118 { … … 124 129 glPopMatrix(); 125 130 glDisable(GL_TEXTURE_2D); 126 127 131 } -
orxonox/trunk/src/world_entities/skysphere.h
r3475 r3484 21 21 22 22 //! A Class to handle a SkySphere 23 class Skysphere : public PNode23 class Skysphere : public PNode 24 24 { 25 private:26 GLUquadricObj *sphereObj; //!< A Placeholder for the SkySphere.27 Material *skyMaterial; //!< A Material for the SkySphere.28 Vector sphereCenter; //!< Center of the SkySphere.29 float sphereRadius; //!< Radius of the SkySphere. This should match the frustum maximum range.30 25 31 26 public: … … 40 35 void draw(); 41 36 42 private: 37 private: 38 GLUquadricObj *sphereObj; //!< A Placeholder for the SkySphere. 39 Material *skyMaterial; //!< A Material for the SkySphere. 40 Vector sphereCenter; //!< Center of the SkySphere. 41 float sphereRadius; //!< Radius of the SkySphere. This should match the frustum maximum range. 42 43 43 44 void initialize(char* fileName); 44 45 }; 45 46 46 #endif 47 #endif /* _SKYSPHERE_H */ 47 48 48 49 50
Note: See TracChangeset
for help on using the changeset viewer.