Changeset 11085 for code/trunk/src/orxonox
- Timestamp:
- Jan 23, 2016, 9:34:29 PM (9 years ago)
- Location:
- code/trunk/src/orxonox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/Scene.cc
r11080 r11085 58 58 #include "Level.h" 59 59 #include "RenderQueueListener.h" 60 #include "graphics/GlobalShader.h" 60 61 61 62 namespace orxonox … … 91 92 92 93 this->radar_ = new Radar(); 94 this->glowShader_ = new GlobalShader(this); 95 this->glowShader_->setScene(WeakPtr<Scene>(this), this->getObjectID()); // avoid circular reference 96 this->glowShader_->getShader().setCompositorName("Glow"); 93 97 } 94 98 else … … 100 104 this->renderQueueListener_ = nullptr; 101 105 this->radar_ = nullptr; 106 this->glowShader_ = nullptr; 102 107 } 103 108 … … 124 129 if (this->radar_) 125 130 this->radar_->destroy(); 131 if (this->glowShader_) 132 this->glowShader_->destroy(); 126 133 127 134 if (GameMode::showsGraphics()) -
code/trunk/src/orxonox/Scene.h
r11080 r11085 118 118 float soundReferenceDistance_; //!< This holds a reference distance, which represents the distance between our scene and the listener 119 119 Radar* radar_; //!< This is a pointer to a Radar object assigned with this scene 120 WeakPtr<GlobalShader> glowShader_; 120 121 121 122 -
code/trunk/src/orxonox/graphics/GlobalShader.h
r11071 r11085 48 48 virtual void changedVisibility() override; 49 49 50 inline const Shader& getShader() const50 inline Shader& getShader() 51 51 { return this->shader_; } 52 52
Note: See TracChangeset
for help on using the changeset viewer.