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

Public Member Functions

virtual boost::shared_ptr< TextureUnitStatecreateTextureUnitState (const std::string &name)=0
 
virtual void assignProgram (GpuProgramType type, const std::string &name)=0
 
virtual void setGpuConstant (int type, const std::string &name, ValueType vt, PropertyValuePtr value, PropertySetGet *context)=0
 
virtual void setTextureUnitIndex (int programType, const std::string &name, int index)=0
 
virtual void addSharedParameter (int type, const std::string &name)=0
 
- Public Member Functions inherited from sh::PropertySet
void setProperty (const std::string &name, PropertyValuePtr &value, PropertySetGet *context)
 

Additional Inherited Members

- Protected Member Functions inherited from sh::PropertySet
virtual bool setPropertyOverride (const std::string &name, PropertyValuePtr &value, PropertySetGet *context)
 

Member Function Documentation

◆ setGpuConstant()

virtual void sh::Pass::setGpuConstant ( int  type,
const std::string &  name,
ValueType  vt,
PropertyValuePtr  value,
PropertySetGet context 
)
pure 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

Implemented in sh::OgrePass.


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