shiny  0.4
a shader and material management library for OGRE
All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Modules Pages
Public Member Functions | List of all members
sh::OgreGpuProgram Class Reference
+ Inheritance diagram for sh::OgreGpuProgram:

Public Member Functions

 OgreGpuProgram (GpuProgramType type, const std::string &compileArguments, const std::string &name, const std::string &profile, const std::string &source, const std::string &lang, const std::string &resourceGroup)
 
virtual bool getSupported ()
 
virtual void setAutoConstant (const std::string &name, const std::string &autoConstantName, const std::string &extraInfo="")
 

Member Function Documentation

◆ getSupported()

virtual bool sh::OgreGpuProgram::getSupported ( )
virtual
Returns
true if the compilation was successful

Implements sh::GpuProgram.

◆ setAutoConstant()

virtual void sh::OgreGpuProgram::setAutoConstant ( const std::string &  name,
const std::string &  autoConstantName,
const std::string &  extraInfo = "" 
)
virtual
Parameters
namename of the uniform in the shader
autoConstantNamename of the auto constant (for example world_viewproj_matrix)
extraInfoif any extra info is needed (e.g. light index), put it here

Implements sh::GpuProgram.


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