Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 15, 2006, 1:12:24 PM (18 years ago)
Author:
amaechler
Message:

branches/atmospheric_engine: fog & changed init & activate fcts from bool to void

File:
1 edited

Legend:

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

    r8261 r8455  
    6565
    6666
    67 bool CloudEffect::init()
     67void CloudEffect::init()
    6868{
    6969        PRINTF(1)("Initializing CloudEffect\n");
     
    8484        float bbox[3] = {0};
    8585        cloudModel.GetDimensions(bbox[0], bbox[1], bbox[2]);
    86        
     86
    8787        // Load Shaders
    8888        this->cloudShader = new Shader( ResourceManager::getInstance()->getDataDir() + "/shaders/sky.vert", ResourceManager::getInstance()->getDataDir() +"/shaders/sky.frag");
     
    115115
    116116
    117 bool CloudEffect::activate()
     117void CloudEffect::activate()
    118118{
    119119        PRINTF(0)( "Activating CloudEffect with Material %s\n", this->cloudTexture.c_str());
     
    122122}
    123123
    124 bool CloudEffect::deactivate()
     124void CloudEffect::deactivate()
    125125{
    126126        PRINTF(0)("Deactivating CloudEffect\n");
     
    133133        if (!this->cloudActivate)
    134134                return;
    135                
     135
    136136        //      glMatrixMode(GL_MODELVIEW);
    137137        //      glPushMatrix();
     
    159159        // glCullFace(GL_BACK);
    160160        // glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
    161        
     161
    162162        // glLineWidth(3.0f);
    163163
     
    209209
    210210        glPopMatrix();
    211        
     211
    212212}
    213213
Note: See TracChangeset for help on using the changeset viewer.