- Timestamp:
- Dec 25, 2009, 1:18:03 PM (15 years ago)
- Location:
- code/branches/pickup2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup2
- Property svn:mergeinfo changed
-
code/branches/pickup2/src/orxonox/overlays/OrxonoxOverlay.h
r5929 r6412 155 155 static void rotateOverlay(const std::string& name, const Degree& angle); 156 156 157 void setBackgroundMaterial(const std::string& material); 158 const std::string& getBackgroundMaterial() const; 159 160 void setBackgroundAlpha(float alpha); 161 157 162 virtual void changedVisibility(); 158 163 … … 169 174 virtual void changedOwner() {} 170 175 171 inline void setOverlayGroup(OverlayGroup* group) 172 { 173 if (group != this->group_) 174 { 175 this->group_ = group; 176 this->changedOverlayGroup(); 177 } 178 } 176 void setOverlayGroup(OverlayGroup* group); 179 177 inline OverlayGroup* getOverlayGroup() const 180 178 { return this->group_; } 181 virtual void changedOverlayGroup() {} 179 virtual void changedOverlayGroup() 180 { this->changedVisibility(); } 182 181 183 182 protected: … … 186 185 virtual void sizeChanged(); 187 186 virtual void positionChanged(); 188 189 void setBackgroundMaterial(const std::string& material);190 const std::string& getBackgroundMaterial() const;191 187 192 188 Ogre::Overlay* overlay_; //!< The overlay the entire class is about. … … 211 207 BaseObject* owner_; 212 208 OverlayGroup* group_; 209 Ogre::Pass* backgroundAlphaPass_; 213 210 }; 214 211
Note: See TracChangeset
for help on using the changeset viewer.