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.
Ogre::GLSLESCgProgram::~GLSLESCgProgram |
( |
| ) |
|
void Ogre::GLSLESProgram::attachToProgramObject |
( |
const GLuint |
programObject | ) |
|
|
inherited |
void Ogre::GLSLESProgram::buildConstantDefinitions |
( |
| ) |
const |
|
protectedinherited |
Populate the passed parameters with name->index map, must be overridden.
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.
bool Ogre::GLSLESProgram::compile |
( |
const bool |
checkErrors = false | ) |
|
|
inherited |
compile source into shader object
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.
String Ogre::GLSLESCgProgram::deleteRegisterFromCg |
( |
const String & |
inSource | ) |
|
|
protected |
void Ogre::GLSLESProgram::detachFromProgramObject |
( |
const GLuint |
programObject | ) |
|
|
inherited |
const String& Ogre::GLSLESCgProgram::getEntryPoint |
( |
void |
| ) |
const |
|
inline |
GLuint Ogre::GLSLESProgram::getGLProgramHandle |
( |
| ) |
const |
|
inlineinherited |
GLuint Ogre::GLSLESProgram::getGLShaderHandle |
( |
| ) |
const |
|
inlineinherited |
bool Ogre::GLSLESProgram::getIsOptimised |
( |
void |
| ) |
|
|
inlineinherited |
const String& Ogre::GLSLESCgProgram::getLanguage |
( |
void |
| ) |
const |
String Ogre::GLSLESProgram::getOptimisedSource |
( |
void |
| ) |
|
|
inlineinherited |
bool Ogre::GLSLESProgram::getOptimiserEnabled |
( |
void |
| ) |
const |
|
inlineinherited |
bool Ogre::GLSLESProgram::getPassFogStates |
( |
void |
| ) |
const |
|
inherited |
bool Ogre::GLSLESProgram::getPassSurfaceAndLightStates |
( |
void |
| ) |
const |
|
inherited |
bool Ogre::GLSLESProgram::getPassTransformStates |
( |
void |
| ) |
const |
|
inherited |
const String& Ogre::GLSLESProgram::getPreprocessorDefines |
( |
void |
| ) |
const |
|
inlineinherited |
Sets the preprocessor defines use to compile the program.
Definition at line 89 of file OgreGLSLESProgram.h.
const StringVector& Ogre::GLSLESCgProgram::getProfiles |
( |
void |
| ) |
const |
|
inline |
bool Ogre::GLSLESCgProgram::isSyntaxSupported |
( |
| ) |
|
|
protected |
void Ogre::GLSLESCgProgram::loadFromSource |
( |
void |
| ) |
|
virtual void Ogre::GLSLESProgram::notifyOnContextLost |
( |
| ) |
|
|
protectedvirtualinherited |
Populate the passed parameters with name->index map.
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
void Ogre::GLSLESCgProgram::setEntryPoint |
( |
const String & |
entryPoint | ) |
|
|
inline |
Sets the entry point for this program ie the first method called.
Definition at line 70 of file OgreGLSLESCgProgram.h.
void Ogre::GLSLESProgram::setIsOptimised |
( |
bool |
flag | ) |
|
|
inlineinherited |
void Ogre::GLSLESProgram::setOptimisedSource |
( |
const String & |
src | ) |
|
|
inlineinherited |
void Ogre::GLSLESProgram::setOptimiserEnabled |
( |
bool |
enabled | ) |
|
|
inherited |
Sets if the GLSL optimiser is enabled.
void Ogre::GLSLESProgram::setPreprocessorDefines |
( |
const String & |
defines | ) |
|
|
inlineinherited |
Sets the preprocessor defines use to compile the program.
Definition at line 87 of file OgreGLSLESProgram.h.
void Ogre::GLSLESCgProgram::setProfiles |
( |
const StringVector & |
profiles | ) |
|
Sets the Cg profiles which can be supported by the program.
void Ogre::GLSLESProgram::unloadHighLevelImpl |
( |
void |
| ) |
|
|
protectedinherited |
Internal unload implementation, must be implemented by subclasses.
void Ogre::GLSLESProgram::unloadImpl |
( |
void |
| ) |
|
|
protectedinherited |
String Ogre::GLSLESCgProgram::mEntryPoint |
|
protected |
The documentation for this class was generated from the following file: