C++ encapsulation of GLSL ES Program Object. More...
#include <OgreGLSLESLinkProgram.h>
Public Member Functions | |
GLSLESLinkProgram (GLSLESGpuProgram *vertexProgram, GLSLESGpuProgram *fragmentProgram) | |
Constructor should only be used by GLSLESLinkProgramManager. | |
virtual | ~GLSLESLinkProgram (void) |
void | activate (void) |
Makes a program object active by making sure it is linked and then putting it in use. | |
virtual void | updateUniforms (GpuProgramParametersSharedPtr params, uint16 mask, GpuProgramType fromProgType) |
Updates program object uniforms using data from GpuProgramParameters. | |
virtual void | updatePassIterationUniforms (GpuProgramParametersSharedPtr params) |
Updates program object uniforms using data from pass iteration GpuProgramParameters. | |
GLuint | getGLProgramHandle (void) const |
Get the GL Handle for the program object. | |
void | setSkeletalAnimationIncluded (bool included) |
Sets whether the linked program includes the required instructions to perform skeletal animation. | |
bool | isSkeletalAnimationIncluded (void) const |
Returns whether the linked program includes the required instructions to perform skeletal animation. | |
virtual GLint | getAttributeIndex (VertexElementSemantic semantic, uint index) |
Get the index of a non-standard attribute bound in the linked code. | |
bool | isAttributeValid (VertexElementSemantic semantic, uint index) |
Is a non-standard attribute bound in the linked code? | |
GLSLESGpuProgram * | getVertexProgram (void) const |
GLSLESGpuProgram * | getFragmentProgram (void) const |
Protected Types | |
typedef set< GLuint >::type | AttributeSet |
typedef map< String, VertexElementSemantic >::type | SemanticToStringMap |
Protected Member Functions | |
virtual void | extractLayoutQualifiers (void) |
virtual void | compileAndLink (void) |
Compiles and links the vertex and fragment programs. | |
virtual void | _useProgram (void) |
Put a program in use. | |
void | buildGLUniformReferences (void) |
Build uniform references from active named uniforms. | |
Ogre::String | getCombinedName (void) |
void | getMicrocodeFromCache (void) |
Get the the binary data of a program from the microcode cache. | |
VertexElementSemantic | getAttributeSemanticEnum (String type) |
const char * | getAttributeSemanticString (VertexElementSemantic semantic) |
Protected Attributes | |
GLUniformReferenceList | mGLUniformReferences |
Container of uniform references that are active in the program object. | |
GLSLESGpuProgram * | mVertexProgram |
Linked vertex program. | |
GLSLESGpuProgram * | mFragmentProgram |
Linked fragment program. | |
bool | mUniformRefsBuilt |
Flag to indicate that uniform references have already been built. | |
GLuint | mGLProgramHandle |
GL handle for the program object. | |
GLint | mLinked |
Flag indicating that the program or pipeline object has been successfully linked. | |
bool | mTriedToLinkAndFailed |
Flag indicating that the program or pipeline object has tried to link and failed. | |
bool | mSkeletalAnimation |
Flag indicating skeletal animation is being performed. | |
GLint | mCustomAttributesIndexes [VES_COUNT][OGRE_MAX_TEXTURE_COORD_SETS] |
An array to hold the attributes indexes. | |
SemanticToStringMap | mSemanticTypeMap |
C++ encapsulation of GLSL ES Program Object.
Definition at line 44 of file OgreGLSLESLinkProgram.h.
typedef set<GLuint>::type Ogre::GLSLESProgramCommon::AttributeSet [protected, inherited] |
Definition at line 80 of file OgreGLSLESProgramCommon.h.
typedef map<String, VertexElementSemantic>::type Ogre::GLSLESProgramCommon::SemanticToStringMap [protected, inherited] |
Definition at line 97 of file OgreGLSLESProgramCommon.h.
Ogre::GLSLESLinkProgram::GLSLESLinkProgram | ( | GLSLESGpuProgram * | vertexProgram, |
GLSLESGpuProgram * | fragmentProgram | ||
) |
Constructor should only be used by GLSLESLinkProgramManager.
virtual Ogre::GLSLESLinkProgram::~GLSLESLinkProgram | ( | void | ) | [virtual] |
virtual void Ogre::GLSLESLinkProgram::_useProgram | ( | void | ) | [protected, virtual] |
Put a program in use.
Implements Ogre::GLSLESProgramCommon.
void Ogre::GLSLESLinkProgram::activate | ( | void | ) | [virtual] |
Makes a program object active by making sure it is linked and then putting it in use.
Implements Ogre::GLSLESProgramCommon.
void Ogre::GLSLESLinkProgram::buildGLUniformReferences | ( | void | ) | [protected] |
Build uniform references from active named uniforms.
Reimplemented from Ogre::GLSLESProgramCommon.
virtual void Ogre::GLSLESLinkProgram::compileAndLink | ( | void | ) | [protected, virtual] |
Compiles and links the vertex and fragment programs.
Implements Ogre::GLSLESProgramCommon.
virtual void Ogre::GLSLESLinkProgram::extractLayoutQualifiers | ( | void | ) | [protected, virtual] |
Definition at line 47 of file OgreGLSLESLinkProgram.h.
virtual GLint Ogre::GLSLESProgramCommon::getAttributeIndex | ( | VertexElementSemantic | semantic, |
uint | index | ||
) | [virtual, inherited] |
Get the index of a non-standard attribute bound in the linked code.
Reimplemented in Ogre::GLSLESProgramPipeline.
VertexElementSemantic Ogre::GLSLESProgramCommon::getAttributeSemanticEnum | ( | String | type | ) | [protected, inherited] |
const char* Ogre::GLSLESProgramCommon::getAttributeSemanticString | ( | VertexElementSemantic | semantic | ) | [protected, inherited] |
Ogre::String Ogre::GLSLESProgramCommon::getCombinedName | ( | void | ) | [protected, inherited] |
GLSLESGpuProgram* Ogre::GLSLESProgramCommon::getFragmentProgram | ( | void | ) | const [inherited] |
Definition at line 144 of file OgreGLSLESProgramCommon.h.
GLuint Ogre::GLSLESProgramCommon::getGLProgramHandle | ( | void | ) | const [inherited] |
Get the GL Handle for the program object.
Definition at line 121 of file OgreGLSLESProgramCommon.h.
void Ogre::GLSLESProgramCommon::getMicrocodeFromCache | ( | void | ) | [protected, inherited] |
Get the the binary data of a program from the microcode cache.
GLSLESGpuProgram* Ogre::GLSLESProgramCommon::getVertexProgram | ( | void | ) | const [inherited] |
Definition at line 143 of file OgreGLSLESProgramCommon.h.
bool Ogre::GLSLESProgramCommon::isAttributeValid | ( | VertexElementSemantic | semantic, |
uint | index | ||
) | [inherited] |
Is a non-standard attribute bound in the linked code?
bool Ogre::GLSLESProgramCommon::isSkeletalAnimationIncluded | ( | void | ) | const [inherited] |
Returns whether the linked program includes the required instructions to perform skeletal animation.
Definition at line 136 of file OgreGLSLESProgramCommon.h.
void Ogre::GLSLESProgramCommon::setSkeletalAnimationIncluded | ( | bool | included | ) | [inherited] |
Sets whether the linked program includes the required instructions to perform skeletal animation.
Definition at line 128 of file OgreGLSLESProgramCommon.h.
virtual void Ogre::GLSLESLinkProgram::updatePassIterationUniforms | ( | GpuProgramParametersSharedPtr | params | ) | [virtual] |
Updates program object uniforms using data from pass iteration GpuProgramParameters.
normally called by GLSLESGpuProgram::bindMultiPassParameters() just before multi pass rendering occurs.
Implements Ogre::GLSLESProgramCommon.
virtual void Ogre::GLSLESLinkProgram::updateUniforms | ( | GpuProgramParametersSharedPtr | params, |
uint16 | mask, | ||
GpuProgramType | fromProgType | ||
) | [virtual] |
Updates program object uniforms using data from GpuProgramParameters.
normally called by GLSLESGpuProgram::bindParameters() just before rendering occurs.
Implements Ogre::GLSLESProgramCommon.
GLint Ogre::GLSLESProgramCommon::mCustomAttributesIndexes[VES_COUNT][OGRE_MAX_TEXTURE_COORD_SETS] [protected, inherited] |
An array to hold the attributes indexes.
Definition at line 83 of file OgreGLSLESProgramCommon.h.
GLSLESGpuProgram* Ogre::GLSLESProgramCommon::mFragmentProgram [protected, inherited] |
Linked fragment program.
Definition at line 66 of file OgreGLSLESProgramCommon.h.
GLuint Ogre::GLSLESProgramCommon::mGLProgramHandle [protected, inherited] |
GL handle for the program object.
Definition at line 70 of file OgreGLSLESProgramCommon.h.
GLUniformReferenceList Ogre::GLSLESProgramCommon::mGLUniformReferences [protected, inherited] |
Container of uniform references that are active in the program object.
Definition at line 61 of file OgreGLSLESProgramCommon.h.
GLint Ogre::GLSLESProgramCommon::mLinked [protected, inherited] |
Flag indicating that the program or pipeline object has been successfully linked.
Definition at line 72 of file OgreGLSLESProgramCommon.h.
SemanticToStringMap Ogre::GLSLESProgramCommon::mSemanticTypeMap [protected, inherited] |
Definition at line 98 of file OgreGLSLESProgramCommon.h.
bool Ogre::GLSLESProgramCommon::mSkeletalAnimation [protected, inherited] |
Flag indicating skeletal animation is being performed.
Definition at line 76 of file OgreGLSLESProgramCommon.h.
bool Ogre::GLSLESProgramCommon::mTriedToLinkAndFailed [protected, inherited] |
Flag indicating that the program or pipeline object has tried to link and failed.
Definition at line 74 of file OgreGLSLESProgramCommon.h.
bool Ogre::GLSLESProgramCommon::mUniformRefsBuilt [protected, inherited] |
Flag to indicate that uniform references have already been built.
Definition at line 68 of file OgreGLSLESProgramCommon.h.
GLSLESGpuProgram* Ogre::GLSLESProgramCommon::mVertexProgram [protected, inherited] |
Linked vertex program.
Definition at line 64 of file OgreGLSLESProgramCommon.h.
Copyright © 2012 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 2012 21:49:30