Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8316 in orxonox.OLD for trunk/src/lib/graphics/effects/fog_effect.cc


Ignore:
Timestamp:
Jun 11, 2006, 1:57:27 PM (19 years ago)
Author:
bensch
Message:

trunk: fixed most -Wall warnings… but there are still many missing :/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/effects/fog_effect.cc

    r8255 r8316  
    7272        this->fogFadeDuration = 0;
    7373        this->localTimer = 0;
    74        
     74
    7575        this->fogMode = GL_EXP2;
    7676        this->fogDensity = 0.001;
     
    7979        this->colorVector = Vector(0.7, 0.7, 0.7);
    8080
     81        return true;
    8182}
    8283
     
    8788
    8889        this->fogActivate = true;
    89        
     90
    9091        GLfloat fogColor[4] = { colorVector.x, colorVector.y, colorVector.z, 1.0};
    9192        glFogi(GL_FOG_MODE, this->fogMode);
     
    9596        glFogf(GL_FOG_START, this->fogStart);
    9697        glFogf(GL_FOG_END, this->fogEnd);
    97        
     98
    9899        glEnable(GL_FOG);
    99100        // glClearColor(0.5, 0.5, 0.5, 1.0);
     101        return true;
    100102}
    101103
     
    106108
    107109        this->fogActivate = false;
    108        
     110
    109111        glDisable(GL_FOG);
     112
     113        return true;
    110114}
    111115
     
    122126        if (!this->fogActivate)
    123127                return;
    124                
     128
    125129
    126130        if (this->fogFadeDuration != 0 && this->localTimer < this->fogFadeDuration) {
Note: See TracChangeset for help on using the changeset viewer.