Changeset 10727 for code/trunk/src/libraries/tools
- Timestamp:
- Oct 31, 2015, 11:06:37 AM (9 years ago)
- Location:
- code/trunk/src/libraries/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/tools/Shader.cc
r9667 r10727 161 161 @brief Defines a new integer value for a given parameter. The parameter will be updated if the compositor is rendered the next time. 162 162 */ 163 void Shader::setParameter( size_t technique, size_t pass, const std::string& parameter, int value)163 void Shader::setParameter(unsigned short technique, unsigned short pass, const std::string& parameter, int value) 164 164 { 165 165 ParameterContainer container = {technique, pass, parameter, value}; … … 171 171 @brief Defines a new float value for a given parameter. The parameter will be updated if the compositor is rendered the next time. 172 172 */ 173 void Shader::setParameter( size_t technique, size_t pass, const std::string& parameter, float value)173 void Shader::setParameter(unsigned short technique, unsigned short pass, const std::string& parameter, float value) 174 174 { 175 175 ParameterContainer container = {technique, pass, parameter, value}; -
code/trunk/src/libraries/tools/Shader.h
r9550 r10727 89 89 virtual void cameraChanged(Ogre::Viewport* viewport, Ogre::Camera* oldCamera); 90 90 91 void setParameter( size_t technique, size_t pass, const std::string& parameter, float value);92 void setParameter( size_t technique, size_t pass, const std::string& parameter, int value);91 void setParameter(unsigned short technique, unsigned short pass, const std::string& parameter, float value); 92 void setParameter(unsigned short technique, unsigned short pass, const std::string& parameter, int value); 93 93 94 94 virtual void notifyMaterialRender(Ogre::uint32 pass_id, Ogre::MaterialPtr& materialPtr); … … 110 110 struct ParameterContainer 111 111 { 112 size_t technique_;///< The ID of the technique113 size_t pass_;///< The ID of the pass112 unsigned short technique_; ///< The ID of the technique 113 unsigned short pass_; ///< The ID of the pass 114 114 std::string parameter_; ///< The name of the parameter 115 115
Note: See TracChangeset
for help on using the changeset viewer.