Changeset 8946 in orxonox.OLD
- Timestamp:
- Jun 30, 2006, 10:12:47 AM (18 years ago)
- Location:
- branches/mountain_lake/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mountain_lake/src/lib/graphics/effects/cloud_effect.cc
r8911 r8946 166 166 167 167 this->skydome->generateSkyPlane(this->divs, this->planetRadius, this->atmosphericRadius, 1, 1); 168 this->skydome->activate(); 168 169 169 170 this->cloudActivate = true; … … 173 174 PRINTF(0)("Deactivating CloudEffect\n"); 174 175 176 this->skydome->deactivate(); 175 177 this->cloudActivate = false; 176 178 } -
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.