Specialisation of HighLevelGpuProgram to provide support for CG.
More...
#include <OgreGLSLESCgProgram.h>
Specialisation of HighLevelGpuProgram to provide support for CG.
Definition at line 39 of file OgreGLSLESCgProgram.h.
◆ GLSLESCgProgram()
◆ ~GLSLESCgProgram()
Ogre::GLSLESCgProgram::~GLSLESCgProgram |
( |
| ) |
|
◆ attachToProgramObject()
void Ogre::GLSLESProgram::attachToProgramObject |
( |
const GLuint |
programObject | ) |
|
|
inherited |
◆ buildConstantDefinitions()
void Ogre::GLSLESProgram::buildConstantDefinitions |
( |
| ) |
const |
|
protectedinherited |
Populate the passed parameters with name->index map, must be overridden.
◆ checkAndFixInvalidDefaultPrecisionError()
void Ogre::GLSLESProgram::checkAndFixInvalidDefaultPrecisionError |
( |
String & |
message | ) |
|
|
protectedinherited |
check the compile result for an error with default precision - and recompile if needed.
some glsl compilers return an error default precision is set to types other then int or float, this function test a failed compile result for the error, delete the needed lines from the source if needed then try to re-compile.
◆ compile()
bool Ogre::GLSLESProgram::compile |
( |
const bool |
checkErrors = false | ) |
|
|
inherited |
compile source into shader object
◆ createLowLevelImpl()
void Ogre::GLSLESProgram::createLowLevelImpl |
( |
void |
| ) |
|
|
protectedinherited |
Internal method for creating a dummy low-level program for this high-level program.
GLSL ES does not give access to the low level implementation of the shader so this method creates an object sub-classed from GLES2GpuProgram just to be compatible with GLES2RenderSystem.
◆ createParameters()
◆ deleteRegisterFromCg()
String Ogre::GLSLESCgProgram::deleteRegisterFromCg |
( |
const String & |
inSource | ) |
|
|
protected |
◆ detachFromProgramObject()
void Ogre::GLSLESProgram::detachFromProgramObject |
( |
const GLuint |
programObject | ) |
|
|
inherited |
◆ getEntryPoint()
const String& Ogre::GLSLESCgProgram::getEntryPoint |
( |
void |
| ) |
const |
◆ getGLProgramHandle()
GLuint Ogre::GLSLESProgram::getGLProgramHandle |
( |
| ) |
const |
|
inherited |
◆ getGLShaderHandle()
GLuint Ogre::GLSLESProgram::getGLShaderHandle |
( |
| ) |
const |
|
inherited |
◆ getIsOptimised()
bool Ogre::GLSLESProgram::getIsOptimised |
( |
void |
| ) |
|
|
inherited |
◆ getLanguage()
const String& Ogre::GLSLESCgProgram::getLanguage |
( |
void |
| ) |
const |
◆ getOptimisedSource()
String Ogre::GLSLESProgram::getOptimisedSource |
( |
void |
| ) |
|
|
inherited |
◆ getOptimiserEnabled()
bool Ogre::GLSLESProgram::getOptimiserEnabled |
( |
void |
| ) |
const |
|
inherited |
◆ getPassFogStates()
bool Ogre::GLSLESProgram::getPassFogStates |
( |
void |
| ) |
const |
|
inherited |
◆ getPassSurfaceAndLightStates()
bool Ogre::GLSLESProgram::getPassSurfaceAndLightStates |
( |
void |
| ) |
const |
|
inherited |
◆ getPassTransformStates()
bool Ogre::GLSLESProgram::getPassTransformStates |
( |
void |
| ) |
const |
|
inherited |
◆ getPreprocessorDefines()
const String& Ogre::GLSLESProgram::getPreprocessorDefines |
( |
void |
| ) |
const |
|
inherited |
Sets the preprocessor defines use to compile the program.
Definition at line 89 of file OgreGLSLESProgram.h.
◆ getProfiles()
const StringVector& Ogre::GLSLESCgProgram::getProfiles |
( |
void |
| ) |
const |
◆ isSyntaxSupported()
bool Ogre::GLSLESCgProgram::isSyntaxSupported |
( |
| ) |
|
|
protected |
◆ loadFromSource()
void Ogre::GLSLESCgProgram::loadFromSource |
( |
void |
| ) |
|
◆ notifyOnContextLost()
virtual void Ogre::GLSLESProgram::notifyOnContextLost |
( |
| ) |
|
|
protectedvirtualinherited |
◆ populateParameterNames()
Populate the passed parameters with name->index map.
◆ resolveCgIncludes()
String Ogre::GLSLESCgProgram::resolveCgIncludes |
( |
const String & |
inSource, |
|
|
Resource * |
resourceBeingLoaded, |
|
|
const String & |
fileName |
|
) |
| |
|
protected |
scan the file for #include and replace with source from the OGRE resources
◆ setEntryPoint()
void Ogre::GLSLESCgProgram::setEntryPoint |
( |
const String & |
entryPoint | ) |
|
Sets the entry point for this program ie the first method called.
Definition at line 70 of file OgreGLSLESCgProgram.h.
◆ setIsOptimised()
void Ogre::GLSLESProgram::setIsOptimised |
( |
bool |
flag | ) |
|
|
inherited |
◆ setOptimisedSource()
void Ogre::GLSLESProgram::setOptimisedSource |
( |
const String & |
src | ) |
|
|
inherited |
◆ setOptimiserEnabled()
void Ogre::GLSLESProgram::setOptimiserEnabled |
( |
bool |
enabled | ) |
|
|
inherited |
Sets if the GLSL optimiser is enabled.
◆ setPreprocessorDefines()
void Ogre::GLSLESProgram::setPreprocessorDefines |
( |
const String & |
defines | ) |
|
|
inherited |
Sets the preprocessor defines use to compile the program.
Definition at line 87 of file OgreGLSLESProgram.h.
◆ setProfiles()
void Ogre::GLSLESCgProgram::setProfiles |
( |
const StringVector & |
profiles | ) |
|
Sets the Cg profiles which can be supported by the program.
◆ unloadHighLevelImpl()
void Ogre::GLSLESProgram::unloadHighLevelImpl |
( |
void |
| ) |
|
|
protectedinherited |
Internal unload implementation, must be implemented by subclasses.
◆ unloadImpl()
void Ogre::GLSLESProgram::unloadImpl |
( |
void |
| ) |
|
|
protectedinherited |
◆ mCompiled
GLint Ogre::GLSLESProgram::mCompiled |
|
privateinherited |
◆ mEntryPoint
String Ogre::GLSLESCgProgram::mEntryPoint |
|
protected |
◆ mGLProgramHandle
GLuint Ogre::GLSLESProgram::mGLProgramHandle |
|
privateinherited |
◆ mGLShaderHandle
GLuint Ogre::GLSLESProgram::mGLShaderHandle |
|
privateinherited |
◆ mIsOptimised
bool Ogre::GLSLESProgram::mIsOptimised |
|
privateinherited |
Flag indicating if shader has been successfully optimised.
Definition at line 162 of file OgreGLSLESProgram.h.
◆ mOptimisedSource
String Ogre::GLSLESProgram::mOptimisedSource |
|
privateinherited |
The optmised source of the program (may be blank until the shader is optmisied)
Definition at line 165 of file OgreGLSLESProgram.h.
◆ mOptimiserEnabled
bool Ogre::GLSLESProgram::mOptimiserEnabled |
|
privateinherited |
◆ mPreprocessorDefines
String Ogre::GLSLESProgram::mPreprocessorDefines |
|
privateinherited |
◆ mProfiles
◆ msCmdEntryPoint
◆ msCmdOptimisation
◆ msCmdPreprocessorDefines
◆ msCmdProfiles
The documentation for this class was generated from the following file: