shiny  0.4
a shader and material management library for OGRE
Public Member Functions | Protected Member Functions | List of all members
sh::OgrePass Class Reference
+ Inheritance diagram for sh::OgrePass:

Public Member Functions

 OgrePass (OgreMaterial *parent, const std::string &configuration, unsigned short lodIndex)
 
virtual boost::shared_ptr< TextureUnitStatecreateTextureUnitState (const std::string &name)
 
virtual void assignProgram (GpuProgramType type, const std::string &name)
 
Ogre::PassgetOgrePass ()
 
virtual void setGpuConstant (int type, const std::string &name, ValueType vt, PropertyValuePtr value, PropertySetGet *context)
 
virtual void addSharedParameter (int type, const std::string &name)
 
virtual void setTextureUnitIndex (int programType, const std::string &name, int index)
 
- Public Member Functions inherited from sh::PropertySet
void setProperty (const std::string &name, PropertyValuePtr &value, PropertySetGet *context)
 

Protected Member Functions

virtual bool setPropertyOverride (const std::string &name, PropertyValuePtr &value, PropertySetGet *context)
 

Member Function Documentation

◆ setGpuConstant()

virtual void sh::OgrePass::setGpuConstant ( int  type,
const std::string &  name,
ValueType  vt,
PropertyValuePtr  value,
PropertySetGet context 
)
virtual
Parameters
typegpu program type
namename of the uniform in the shader
vttype of value, e.g. vector4
valuevalue to set
contextused for retrieving linked values

Implements sh::Pass.

◆ setPropertyOverride()

virtual bool sh::OgrePass::setPropertyOverride ( const std::string &  name,
PropertyValuePtr &  value,
PropertySetGet context 
)
protectedvirtual
Returns
true if the specified property was found, or false otherwise

Reimplemented from sh::PropertySet.


The documentation for this class was generated from the following file: