Changeset 8946 in orxonox.OLD for branches/mountain_lake/src/world_entities
- Timestamp:
- Jun 30, 2006, 10:12:47 AM (19 years ago)
- Location:
- branches/mountain_lake/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mountain_lake/src/world_entities/skydome.cc
r8903 r8946 47 47 this->toList(OM_BACKGROUND); 48 48 this->toReflectionList(); 49 50 activateDome = false; 49 51 50 52 } … … 74 76 75 77 78 void Skydome::activate() 79 { 80 this->activateDome = true; 81 } 82 83 void Skydome::deactivate() 84 { 85 this->activateDome = false; 86 } 87 88 76 89 void Skydome::draw() const 77 90 { 91 if(!activateDome) 92 return; 93 78 94 glPushAttrib(GL_ENABLE_BIT); 79 95 -
branches/mountain_lake/src/world_entities/skydome.h
r8793 r8946 34 34 void setShader(Shader* shader); 35 35 void setTexture(GLuint texture); 36 37 void activate(); 38 void deactivate(); 36 39 37 40 private: … … 44 47 }; 45 48 49 bool activateDome; 46 50 47 51 VertexInfo *planeVertices;
Note: See TracChangeset
for help on using the changeset viewer.