OGRE  2.1.0unstable
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 ()
 
void attachToProgramObject (const GLuint programObject)
 
bool compile (const bool checkErrors=false)
 compile source into shader object More...
 
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...
 
bool getPassFogStates (void) const
 
bool getPassSurfaceAndLightStates (void) const
 
bool getPassTransformStates (void) const
 Overridden. More...
 
const StringgetPreprocessorDefines (void) const
 Sets the preprocessor defines use to compile the program. 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 setPreprocessorDefines (const String &defines)
 Sets the preprocessor defines use to compile the program. More...
 
void setProfiles (const StringVector &profiles)
 Sets the Cg profiles which can be supported by the 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

◆ attachToProgramObject()

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

◆ compile()

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

compile source into shader object

◆ createParameters()

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

Overridden from GpuProgram.

◆ detachFromProgramObject()

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

◆ getEntryPoint()

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

Gets the entry point defined for this program.

◆ getGLProgramHandle()

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

◆ getGLShaderHandle()

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

GL Shader Handle.

◆ getIsOptimised()

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

Gets if the GLSL source has been optimised successfully.

◆ getLanguage()

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

Overridden from GLSLESProgram.

◆ getOptimisedSource()

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

Gets he optimised GLSL source.

◆ getOptimiserEnabled()

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

Gets if the GLSL optimiser is enabled.

◆ getPassFogStates()

bool Ogre::GLSLESProgram::getPassFogStates ( void  ) const
inherited

◆ getPassSurfaceAndLightStates()

bool Ogre::GLSLESProgram::getPassSurfaceAndLightStates ( void  ) const
inherited

◆ getPassTransformStates()

bool Ogre::GLSLESProgram::getPassTransformStates ( void  ) const
inherited

Overridden.

◆ getPreprocessorDefines()

const String& Ogre::GLSLESProgram::getPreprocessorDefines ( void  ) const
inlineinherited

Sets the preprocessor defines use to compile the program.

◆ getProfiles()

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

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

◆ loadFromSource()

void Ogre::GLSLESCgProgram::loadFromSource ( void  )

Overridden from GLSLESProgram.

◆ setEntryPoint()

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

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

◆ setIsOptimised()

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

Sets if the GLSL source has been optimised successfully.

◆ setOptimisedSource()

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

Sets the optimised GLSL source.

◆ setOptimiserEnabled()

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

Sets if the GLSL optimiser is enabled.

◆ setPreprocessorDefines()

void Ogre::GLSLESProgram::setPreprocessorDefines ( const String defines)
inlineinherited

Sets the preprocessor defines use to compile the program.

◆ setProfiles()

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

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


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