Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8946 in orxonox.OLD


Ignore:
Timestamp:
Jun 30, 2006, 10:12:47 AM (18 years ago)
Author:
hdavid
Message:

branches/mountain_lake: deactivating clouds also deactivates the skydome

Location:
branches/mountain_lake/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/mountain_lake/src/lib/graphics/effects/cloud_effect.cc

    r8911 r8946  
    166166
    167167    this->skydome->generateSkyPlane(this->divs, this->planetRadius, this->atmosphericRadius, 1, 1);
     168    this->skydome->activate();
    168169
    169170    this->cloudActivate = true;
     
    173174    PRINTF(0)("Deactivating CloudEffect\n");
    174175
     176    this->skydome->deactivate();
    175177    this->cloudActivate = false;
    176178}
  • branches/mountain_lake/src/world_entities/skydome.cc

    r8903 r8946  
    4747  this->toList(OM_BACKGROUND);
    4848  this->toReflectionList();
     49 
     50  activateDome = false;
    4951
    5052}
     
    7476
    7577
     78void Skydome::activate()
     79{
     80  this->activateDome = true;
     81}
     82
     83void Skydome::deactivate()
     84{
     85  this->activateDome = false;
     86}
     87
     88
    7689void Skydome::draw() const
    7790{
     91  if(!activateDome)
     92    return;
     93 
    7894  glPushAttrib(GL_ENABLE_BIT);
    7995
  • branches/mountain_lake/src/world_entities/skydome.h

    r8793 r8946  
    3434  void setShader(Shader* shader);
    3535  void setTexture(GLuint texture);
     36 
     37  void activate();
     38  void deactivate();
    3639
    3740private:
     
    4447  };
    4548
     49  bool activateDome;
    4650 
    4751  VertexInfo *planeVertices;
Note: See TracChangeset for help on using the changeset viewer.