Go to the documentation of this file.
28 #ifndef __GLSLESProgramCommon_H__
29 #define __GLSLESProgramCommon_H__
39 class GLSLESGpuProgram;
42 struct GLUniformReference
87 void buildGLUniformReferences(
void);
93 #define NULL_CUSTOM_ATTRIBUTES_INDEX -2
94 #define NOT_FOUND_CUSTOM_ATTRIBUTES_INDEX -1
99 void getMicrocodeFromCache(
void);
101 virtual void compileAndLink(
void) = 0;
103 virtual void _useProgram(
void) = 0;
118 virtual void activate(
void) = 0;
161 #endif // __GLSLESProgramCommon_H__
GLUniformReferenceList::iterator GLUniformReferenceIterator
vector< HardwareUniformBufferSharedPtr >::type GLUniformBufferList
@ VES_COUNT
The number of VertexElementSemantic elements (note - the first value VES_POSITION is 1)
void setSkeletalAnimationIncluded(bool included)
Sets whether the linked program includes the required instructions to perform skeletal animation.
map< String, VertexElementSemantic >::type SemanticToStringMap
bool isSkeletalAnimationIncluded(void) const
Returns whether the linked program includes the required instructions to perform skeletal animation.
bool mUniformRefsBuilt
Flag to indicate that uniform references have already been built.
GLES2UniformCache * getUniformCache(void)
GpuProgramType
Enumerates the types of programs which can run on the GPU.
VertexElementSemantic
Vertex element semantics, used to identify the meaning of vertex buffer contents.
std::vector< GLUniformReference, STLAllocator< GLUniformReference, GeneralAllocPolicy > > type
#define OGRE_MAX_TEXTURE_COORD_SETS
Define number of texture coordinate sets allowed per vertex.
GLuint mGLProgramHandle
GL handle for the program object.
bool mSkeletalAnimation
Flag indicating skeletal animation is being performed.
GLSLESGpuProgram * getVertexProgram(void) const
GLUniformBufferList mGLUniformBufferReferences
Container of uniform buffer references that are active in the program object.
GLSLESGpuProgram * getFragmentProgram(void) const
GLUniformBufferList::iterator GLUniformBufferIterator
GLint mLinked
Flag indicating that the program or pipeline object has been successfully linked.
GLUniformReferenceList mGLUniformReferences
Container of uniform references that are active in the program object.
SemanticToStringMap mSemanticTypeMap
GLES2UniformCache * mUniformCache
C++ encapsulation of GLSL ES Program Object.
vector< GLUniformReference >::type GLUniformReferenceList
GLuint getGLProgramHandle(void) const
Get the GL Handle for the program object.
set< GLuint >::type AttributeSet
bool mTriedToLinkAndFailed
Flag indicating that the program or pipeline object has tried to link and failed.
GLSL ES low level compiled shader object - this class is used to get at the linked program object and...
GLSLESGpuProgram * mVertexProgram
Linked vertex program.
GLSLESGpuProgram * mFragmentProgram
Linked fragment 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