OGRE  1.10.7
Object-Oriented Graphics Rendering Engine
Ogre::GLSL::GLSLLinkProgram Class Reference

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...
 

Detailed Description

C++ encapsulation of GLSL Program Object.

Constructor & Destructor Documentation

◆ GLSLLinkProgram()

Ogre::GLSL::GLSLLinkProgram::GLSLLinkProgram ( GLSLProgram vertexProgram,
GLSLProgram geometryProgram,
GLSLProgram fragmentProgram 
)

Constructor should only be used by GLSLLinkProgramManager.

◆ ~GLSLLinkProgram()

Ogre::GLSL::GLSLLinkProgram::~GLSLLinkProgram ( void  )

Member Function Documentation

◆ activate()

void Ogre::GLSL::GLSLLinkProgram::activate ( void  )

Makes a program object active by making sure it is linked and then putting it in use.

◆ updateUniforms()

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.

◆ updatePassIterationUniforms()

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.

◆ getGLHandle()

GLhandleARB Ogre::GLSL::GLSLLinkProgram::getGLHandle ( void  ) const
inline

Get the GL Handle for the program object.

◆ setSkeletalAnimationIncluded()

void Ogre::GLSL::GLSLLinkProgram::setSkeletalAnimationIncluded ( bool  included)
inline

Sets whether the linked program includes the required instructions to perform skeletal animation.

Remarks
If this is set to true, OGRE will not blend the geometry according to skeletal animation, it will expect the vertex program to do it.

◆ isSkeletalAnimationIncluded()

bool Ogre::GLSL::GLSLLinkProgram::isSkeletalAnimationIncluded ( void  ) const
inline

Returns whether the linked program includes the required instructions to perform skeletal animation.

Remarks
If this returns true, OGRE will not blend the geometry according to skeletal animation, it will expect the vertex program to do it.

◆ getAttributeIndex()

GLuint Ogre::GLSL::GLSLLinkProgram::getAttributeIndex ( VertexElementSemantic  semantic,
uint  index 
)

Get the index of a non-standard attribute bound in the linked code.

◆ isAttributeValid()

bool Ogre::GLSL::GLSLLinkProgram::isAttributeValid ( VertexElementSemantic  semantic,
uint  index 
)

Is a non-standard attribute bound in the linked code?


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