Changeset 7972 for code/branches/usability/src/libraries/tools/Shader.h
- Timestamp:
- Feb 26, 2011, 8:50:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability/src/libraries/tools/Shader.h
r7966 r7972 65 65 void updateVisibility(); 66 66 67 inline void setCompositor (const std::string& compositor)67 inline void setCompositorName(const std::string& name) 68 68 { 69 if (this->compositor _ != compositor)69 if (this->compositorName_ != name) 70 70 { 71 this->compositor _ = compositor;72 this->changedCompositor ();71 this->compositorName_ = name; 72 this->changedCompositorName(); 73 73 } 74 74 } 75 inline const std::string& getCompositor() const 76 { return this->compositor_; } 77 void changedCompositor(); 75 inline const std::string& getCompositorName() const 76 { return this->compositorName_; } 77 void changedCompositorName(); 78 void changedCompositorName(Ogre::Viewport* viewport); 78 79 79 void setSceneManager(Ogre::SceneManager* scenemanager); 80 inline void setSceneManager(Ogre::SceneManager* scenemanager) 81 { this->scenemanager_ = scenemanager; } 80 82 inline Ogre::SceneManager* getSceneManager() const 81 83 { return this->scenemanager_; } … … 94 96 95 97 private: 98 static bool hasCgProgramManager(); 99 96 100 Ogre::SceneManager* scenemanager_; 97 101 Ogre::CompositorInstance* compositorInstance_; 98 102 bool bVisible_; 99 103 bool bLoadCompositor_; 100 bool bViewportInitialized_; 101 std::string compositor_; 102 std::string oldcompositor_; 104 std::string compositorName_; 105 std::string oldcompositorName_; 103 106 104 107 static MaterialMap parameters_s;
Note: See TracChangeset
for help on using the changeset viewer.