Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 7, 2008, 4:18:11 AM (15 years ago)
Author:
landauf
Message:
  • Added support for postprocessing shaders (bloom, motion blur, …). Shaders are only visible if Plugin_CgProgramManager is included in bin/Plugins.cfg.
  • Added class GlobalShader which is visible on all clients and can be activated or deactivated by triggers or other events.
  • Added RadialBlur shader to the SpaceShip's engine. The strength of the RadialBlur depends on the SpaceShip's velocity.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy2/src/orxonox/gamestates/GSLevel.cc

    r2344 r2350  
    6565    {
    6666        RegisterObject(GSLevel);
     67
     68        this->ccKeybind_ = 0;
     69        this->ccTkeybind_ = 0;
     70        this->ccSetTimeFactor_ = 0;
     71
    6772        setConfigValues();
    6873    }
     
    142147    {
    143148        // destroy console commands
    144         delete this->ccKeybind_;
    145         delete this->ccSetTimeFactor_;
    146         delete this->ccTkeybind_;
     149        if (this->ccKeybind_)
     150        {
     151            delete this->ccKeybind_;
     152            this->ccKeybind_ = 0;
     153        }
     154        if (this->ccSetTimeFactor_)
     155        {
     156            delete this->ccSetTimeFactor_;
     157            this->ccSetTimeFactor_ = 0;
     158        }
     159        if (this->ccTkeybind_)
     160        {
     161            delete this->ccTkeybind_;
     162            this->ccTkeybind_ = 0;
     163        }
    147164
    148165        // this call will delete every BaseObject!
     
    159176
    160177        if (this->radar_)
     178        {
    161179            delete this->radar_;
     180            this->radar_ = 0;
     181        }
    162182
    163183        if (this->cameraManager_)
     184        {
    164185            delete this->cameraManager_;
     186            this->cameraManager_ = 0;
     187        }
    165188
    166189        if (this->levelManager_)
     190        {
    167191            delete this->levelManager_;
     192            this->levelManager_ = 0;
     193        }
    168194
    169195        if (this->playerManager_)
     196        {
    170197            delete this->playerManager_;
     198            this->playerManager_ = 0;
     199        }
    171200
    172201        if (Core::showsGraphics())
     
    175204            InputManager::getInstance().requestDestroyState("game");
    176205            if (this->keyBinder_)
     206            {
    177207                delete this->keyBinder_;
     208                this->keyBinder_ = 0;
     209            }
    178210        }
    179211    }
Note: See TracChangeset for help on using the changeset viewer.