![]() |
OGRE
1.10.5
Object-Oriented Graphics Rendering Engine
|
C++ encapsulation of GLSL Program Object. More...
#include <OgreGLSLLinkProgram.h>
Public Member Functions | |
GLSLLinkProgram (GLSLProgram *vertexProgram, GLSLProgram *geometryProgram, GLSLProgram *fragmentProgram) | |
Constructor should only be used by GLSLLinkProgramManager. More... | |
~GLSLLinkProgram (void) | |
void | activate (void) |
Makes a program object active by making sure it is linked and then putting it in use. More... | |
GLuint | getAttributeIndex (VertexElementSemantic semantic, uint index) |
Get the index of a non-standard attribute bound in the linked code. More... | |
GLhandleARB | getGLHandle (void) const |
Get the GL Handle for the program object. More... | |
bool | isAttributeValid (VertexElementSemantic semantic, uint index) |
Is a non-standard attribute bound in the linked code? More... | |
bool | isSkeletalAnimationIncluded (void) const |
Returns whether the linked program includes the required instructions to perform skeletal animation. More... | |
void | setSkeletalAnimationIncluded (bool included) |
Sets whether the linked program includes the required instructions to perform skeletal animation. More... | |
void | updatePassIterationUniforms (GpuProgramParametersSharedPtr params) |
Updates program object uniforms using data from pass iteration GpuProgramParameters. More... | |
void | updateUniforms (GpuProgramParametersSharedPtr params, uint16 mask, GpuProgramType fromProgType) |
Updates program object uniforms using data from GpuProgramParameters. More... | |
C++ encapsulation of GLSL Program Object.
Ogre::GLSL::GLSLLinkProgram::GLSLLinkProgram | ( | GLSLProgram * | vertexProgram, |
GLSLProgram * | geometryProgram, | ||
GLSLProgram * | fragmentProgram | ||
) |
Constructor should only be used by GLSLLinkProgramManager.
Ogre::GLSL::GLSLLinkProgram::~GLSLLinkProgram | ( | void | ) |
void Ogre::GLSL::GLSLLinkProgram::activate | ( | void | ) |
Makes a program object active by making sure it is linked and then putting it in use.
void Ogre::GLSL::GLSLLinkProgram::updateUniforms | ( | GpuProgramParametersSharedPtr | params, |
uint16 | mask, | ||
GpuProgramType | fromProgType | ||
) |
Updates program object uniforms using data from GpuProgramParameters.
normally called by GLSLGpuProgram::bindParameters() just before rendering occurs.
void Ogre::GLSL::GLSLLinkProgram::updatePassIterationUniforms | ( | GpuProgramParametersSharedPtr | params | ) |
Updates program object uniforms using data from pass iteration GpuProgramParameters.
normally called by GLSLGpuProgram::bindMultiPassParameters() just before multi pass rendering occurs.
|
inline |
Get the GL Handle for the program object.
|
inline |
Sets whether the linked program includes the required instructions to perform skeletal animation.
|
inline |
Returns whether the linked program includes the required instructions to perform skeletal animation.
GLuint Ogre::GLSL::GLSLLinkProgram::getAttributeIndex | ( | VertexElementSemantic | semantic, |
uint | index | ||
) |
Get the index of a non-standard attribute bound in the linked code.
bool Ogre::GLSL::GLSLLinkProgram::isAttributeValid | ( | VertexElementSemantic | semantic, |
uint | index | ||
) |
Is a non-standard attribute bound in the linked code?