Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 15, 2006, 1:12:24 PM (19 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/rain_effect.cc

    r8443 r8455  
    105105
    106106
    107 bool RainEffect::init()
     107void RainEffect::init()
    108108{
    109109        //Default values
     
    126126        lightMan = LightManager::getInstance();
    127127        this->rainAmbient = lightMan->getAmbientColor();
    128 
    129         return 0;
    130128}
    131129
     
    133131SparkParticles* RainEffect::rainParticles = NULL;
    134132
    135 bool RainEffect::activate()
     133void RainEffect::activate()
    136134{
    137135        PRINTF(0)( "Activating RainEffect, coord: %f, %f, %f, size: %f, %f, rate: %f, velocity: %f, moveRain: %s\n", this->rainCoord.x, this->rainCoord.y, this->rainCoord.z, this->rainSize.x, this-> rainSize.y, this->rainRate, this->rainVelocity, this->rainMove ? "true" : "false" );
     
    168166                lightMan->setAmbientColor(.1,.1,.1);
    169167
    170         return 0;
    171 }
    172 
    173 
    174 bool RainEffect::deactivate()
     168}
     169
     170
     171void RainEffect::deactivate()
    175172{
    176173        PRINTF(0)("Deactivating RainEffect\n");
     
    185182        lightMan->setAmbientColor(this->rainAmbient, this->rainAmbient, this->rainAmbient);
    186183
    187         return 0;
    188184}
    189185
Note: See TracChangeset for help on using the changeset viewer.