OGRE  1.10.5
Object-Oriented Graphics Rendering Engine
Ogre::GLSLESCgProgram Class Reference

Specialisation of HighLevelGpuProgram to provide support for CG. More...

#include <OgreGLSLESCgProgram.h>

+ Inheritance diagram for Ogre::GLSLESCgProgram:

Classes

class  CmdEntryPoint
 Command object for setting entry point. More...
 
class  CmdProfiles
 Command object for setting profiles. More...
 

Public Member Functions

 GLSLESCgProgram (ResourceManager *creator, const String &name, ResourceHandle handle, const String &group, bool isManual, ManualResourceLoader *loader)
 
 ~GLSLESCgProgram ()
 
GpuProgram_getBindingDelegate (void)
 Since GLSL has no assembly, use this shader for binding. More...
 
void attachToProgramObject (const GLuint programObject)
 
void bindProgram (void)
 Execute the binding functions for this program. More...
 
void bindProgramParameters (GpuProgramParametersSharedPtr params, uint16 mask)
 Execute the param binding functions for this program. More...
 
void bindProgramPassIterationParameters (GpuProgramParametersSharedPtr params)
 Execute the pass iteration param binding functions for this program. More...
 
void bindProgramSharedParameters (GpuProgramParametersSharedPtr params, uint16 mask)
 Execute the shared param binding functions for this program. More...
 
size_t calculateSize (void) const
 
bool compile (const bool checkErrors=false)
 compile source into shader object More...
 
GLuint createGLProgramHandle ()
 
GpuProgramParametersSharedPtr createParameters (void)
 Overridden from GpuProgram. More...
 
void detachFromProgramObject (const GLuint programObject)
 
const StringgetEntryPoint (void) const
 Gets the entry point defined for this program. More...
 
GLuint getGLProgramHandle () const
 
GLuint getGLShaderHandle () const
 GL Shader Handle. More...
 
bool getIsOptimised (void)
 Gets if the GLSL source has been optimised successfully. More...
 
const StringgetLanguage (void) const
 Overridden from GLSLESProgram. More...
 
String getOptimisedSource (void)
 Gets he optimised GLSL source. More...
 
bool getOptimiserEnabled (void) const
 Gets if the GLSL optimiser is enabled. More...
 
const StringVectorgetProfiles (void) const
 Gets the Cg profiles which can be supported by the program. More...
 
void loadFromSource (void)
 Overridden from GLSLESProgram. More...
 
void setEntryPoint (const String &entryPoint)
 Sets the entry point for this program ie the first method called. More...
 
void setIsOptimised (bool flag)
 Sets if the GLSL source has been optimised successfully. More...
 
void setOptimisedSource (const String &src)
 Sets the optimised GLSL source. More...
 
void setOptimiserEnabled (bool enabled)
 Sets if the GLSL optimiser is enabled. More...
 
void setProfiles (const StringVector &profiles)
 Sets the Cg profiles which can be supported by the program. More...
 
void unbindProgram (void)
 Execute the unbinding functions for this program. More...
 

Detailed Description

Specialisation of HighLevelGpuProgram to provide support for CG.

Remarks
Cg programs will be converted to GLSL

Constructor & Destructor Documentation

◆ GLSLESCgProgram()

Ogre::GLSLESCgProgram::GLSLESCgProgram ( ResourceManager creator,
const String name,
ResourceHandle  handle,
const String group,
bool  isManual,
ManualResourceLoader loader 
)

◆ ~GLSLESCgProgram()

Ogre::GLSLESCgProgram::~GLSLESCgProgram ( )

Member Function Documentation

◆ loadFromSource()

void Ogre::GLSLESCgProgram::loadFromSource ( void  )

Overridden from GLSLESProgram.

◆ getLanguage()

const String& Ogre::GLSLESCgProgram::getLanguage ( void  ) const

Overridden from GLSLESProgram.

◆ setEntryPoint()

void Ogre::GLSLESCgProgram::setEntryPoint ( const String entryPoint)
inline

Sets the entry point for this program ie the first method called.

◆ getEntryPoint()

const String& Ogre::GLSLESCgProgram::getEntryPoint ( void  ) const
inline

Gets the entry point defined for this program.

◆ setProfiles()

void Ogre::GLSLESCgProgram::setProfiles ( const StringVector profiles)

Sets the Cg profiles which can be supported by the program.

◆ getProfiles()

const StringVector& Ogre::GLSLESCgProgram::getProfiles ( void  ) const
inline

Gets the Cg profiles which can be supported by the program.

◆ getGLShaderHandle()

GLuint Ogre::GLSLESProgram::getGLShaderHandle ( ) const
inlineinherited

GL Shader Handle.

◆ attachToProgramObject()

void Ogre::GLSLESProgram::attachToProgramObject ( const GLuint  programObject)
inherited

◆ detachFromProgramObject()

void Ogre::GLSLESProgram::detachFromProgramObject ( const GLuint  programObject)
inherited

◆ getGLProgramHandle()

GLuint Ogre::GLSLESProgram::getGLProgramHandle ( ) const
inlineinherited

◆ createGLProgramHandle()

GLuint Ogre::GLSLESProgram::createGLProgramHandle ( )
inherited

◆ setOptimiserEnabled()

void Ogre::GLSLESProgram::setOptimiserEnabled ( bool  enabled)
inherited

Sets if the GLSL optimiser is enabled.

◆ getOptimiserEnabled()

bool Ogre::GLSLESProgram::getOptimiserEnabled ( void  ) const
inlineinherited

Gets if the GLSL optimiser is enabled.

◆ setIsOptimised()

void Ogre::GLSLESProgram::setIsOptimised ( bool  flag)
inlineinherited

Sets if the GLSL source has been optimised successfully.

◆ getIsOptimised()

bool Ogre::GLSLESProgram::getIsOptimised ( void  )
inlineinherited

Gets if the GLSL source has been optimised successfully.

◆ setOptimisedSource()

void Ogre::GLSLESProgram::setOptimisedSource ( const String src)
inlineinherited

Sets the optimised GLSL source.

◆ getOptimisedSource()

String Ogre::GLSLESProgram::getOptimisedSource ( void  )
inlineinherited

Gets he optimised GLSL source.

◆ createParameters()

GpuProgramParametersSharedPtr Ogre::GLSLESProgram::createParameters ( void  )
inherited

Overridden from GpuProgram.

◆ compile()

bool Ogre::GLSLESProgram::compile ( const bool  checkErrors = false)
inherited

compile source into shader object

◆ _getBindingDelegate()

GpuProgram* Ogre::GLSLESProgram::_getBindingDelegate ( void  )
inlineinherited

Since GLSL has no assembly, use this shader for binding.

◆ bindProgram()

void Ogre::GLSLESProgram::bindProgram ( void  )
inherited

Execute the binding functions for this program.

◆ unbindProgram()

void Ogre::GLSLESProgram::unbindProgram ( void  )
inherited

Execute the unbinding functions for this program.

◆ bindProgramParameters()

void Ogre::GLSLESProgram::bindProgramParameters ( GpuProgramParametersSharedPtr  params,
uint16  mask 
)
inherited

Execute the param binding functions for this program.

◆ bindProgramSharedParameters()

void Ogre::GLSLESProgram::bindProgramSharedParameters ( GpuProgramParametersSharedPtr  params,
uint16  mask 
)
inherited

Execute the shared param binding functions for this program.

◆ bindProgramPassIterationParameters()

void Ogre::GLSLESProgram::bindProgramPassIterationParameters ( GpuProgramParametersSharedPtr  params)
inherited

Execute the pass iteration param binding functions for this program.

◆ calculateSize()

size_t Ogre::GLSLESProgram::calculateSize ( void  ) const
inherited

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