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

C++ encapsulation of GLSL Program Object. More...

#include <OgreGLSLLinkProgram.h>

+ Inheritance diagram for Ogre::GLSL::GLSLLinkProgram:

Public Member Functions

 GLSLLinkProgram (const GLShaderList &shaders)
 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...
 
uint getGLHandle (void) const
 Get the GL Handle for the program object. More...
 
bool isAttributeValid (VertexElementSemantic semantic, uint index)
 
void updateUniforms (GpuProgramParametersSharedPtr params, uint16 mask, GpuProgramType fromProgType)
 Updates program object uniforms using data from GpuProgramParameters. More...
 
- Public Member Functions inherited from Ogre::GLSLProgramCommon
 GLSLProgramCommon (const GLShaderList &shaders)
 
virtual ~GLSLProgramCommon ()
 
uint getGLProgramHandle (void) const
 Get the GL Handle for the program object. More...
 
bool isUsingShader (GLSLShaderCommon *shader) const
 query if the program is using the given shader More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Ogre::GLSLProgramCommon
static int32 getFixedAttributeIndex (VertexElementSemantic semantic, uint index)
 Get the fixed attribute bindings normally used by GL for a semantic. More...
 
static void useTightAttributeLayout ()
 use alternate vertex attribute layout using only 8 vertex attributes More...
 

Detailed Description

C++ encapsulation of GLSL Program Object.

Constructor & Destructor Documentation

◆ GLSLLinkProgram()

Ogre::GLSL::GLSLLinkProgram::GLSLLinkProgram ( const GLShaderList shaders)
explicit

Constructor should only be used by GLSLLinkProgramManager.

◆ ~GLSLLinkProgram()

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

Member Function Documentation

◆ activate()

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

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

Implements Ogre::GLSLProgramCommon.

◆ isAttributeValid()

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

◆ updateUniforms()

void Ogre::GLSL::GLSLLinkProgram::updateUniforms ( GpuProgramParametersSharedPtr  params,
uint16  mask,
GpuProgramType  fromProgType 
)
virtual

Updates program object uniforms using data from GpuProgramParameters.

normally called by GLSLGpuProgram::bindParameters() just before rendering occurs.

Implements Ogre::GLSLProgramCommon.

◆ getGLHandle()

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

Get the GL Handle for the program object.


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