Go to the documentation of this file.
27 #ifndef _ShaderProgram_
28 #define _ShaderProgram_
154 void addDependency(
const String& libFileName);
157 size_t getDependencyCount()
const;
162 const String& getDependency(
unsigned int index)
const;
206 void destroyParameters();
209 void destroyFunctions();
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Function * mEntryPointFunction
ShaderFunctionList mFunctions
const ShaderFunctionList & getFunctions() const
Get the function list of this program.
vector< String >::type StringVector
UniformParameterList mParameters
void setUseColumnMajorMatrices(bool value)
Tells Ogre whether auto-bound matrices should be sent in column or row-major order.
vector< UniformParameterPtr >::type UniformParameterList
GpuProgramType
Enumerates the types of programs which can run on the GPU.
vector< Function * >::type ShaderFunctionList
A class that represents a shader based program.
bool mColumnMajorMatrices
Reference-counted shared pointer, used for objects where implicit destruction is required.
GpuConstantType
Enumeration of the types of constant we may encounter in programs.
Function * getEntryPointFunction()
Get the entry point function of this program.
A singleton manager class that manages shader based programs.
bool getSkeletalAnimationIncluded() const
Returns whether a vertex program includes the required instructions to perform skeletal animation.
void setEntryPointFunction(Function *function)
Set the entry point function.
AutoConstantType
Defines the types of automatically updated values that may be bound to GpuProgram parameters,...
void setSkeletalAnimationIncluded(bool value)
Sets whether a vertex program includes the required instructions to perform skeletal animation.
float Real
Software floating point type.
bool getUseColumnMajorMatrices() const
Returns whether Ogre will pass auto-bound matrices as column-major.
A class that represents a shader based program function.
StringVector mDependencies
const UniformParameterList & getParameters() const
Get the list of uniform parameters of this program.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15