Go to the documentation of this file.
28 #ifndef __GLSLESProgram_H__
29 #define __GLSLESProgram_H__
53 #if !OGRE_NO_GLES2_GLSL_OPTIMISER
58 String doGet(
const void* target)
const;
59 void doSet(
void* target,
const String& val);
66 String doGet(
const void* target)
const;
67 void doSet(
void* target,
const String& val);
77 void attachToProgramObject(
const GLuint programObject );
78 void detachFromProgramObject(
const GLuint programObject );
82 bool getPassTransformStates(
void)
const;
83 bool getPassSurfaceAndLightStates(
void)
const;
84 bool getPassFogStates(
void)
const;
91 #if !OGRE_NO_GLES2_GLSL_OPTIMISER
92 void setOptimiserEnabled(
bool enabled);
109 const String& getLanguage(
void)
const;
114 bool compile(
const bool checkErrors =
false);
118 #if !OGRE_NO_GLES2_GLSL_OPTIMISER
124 void loadFromSource(
void);
130 void createLowLevelImpl(
void);
132 void unloadHighLevelImpl(
void);
134 void unloadImpl(
void);
139 void buildConstantDefinitions()
const;
145 void checkAndFixInvalidDefaultPrecisionError(
String &message );
147 #if OGRE_PLATFORM == OGRE_PLATFORM_ANDROID
149 virtual void notifyOnContextLost();
160 #if !OGRE_NO_GLES2_GLSL_OPTIMISER
170 #endif // __GLSLESProgram_H__
unsigned long long int ResourceHandle
GLuint mGLShaderHandle
GL handle for shader object.
Command object for setting macro defines.
static CmdPreprocessorDefines msCmdPreprocessorDefines
const String & getPreprocessorDefines(void) const
Sets the preprocessor defines use to compile the program.
Abstract class which is command object which gets/sets parameters.
bool getIsOptimised(void)
Gets if the GLSL source has been optimised successfully.
String getOptimisedSource(void)
Gets he optimised GLSL source.
void setIsOptimised(bool flag)
Sets if the GLSL source has been optimised successfully.
Specialisation of HighLevelGpuProgram to provide support for OpenGL Shader Language (GLSL ES) for Ope...
Defines a generic resource handler.
void setPreprocessorDefines(const String &defines)
Sets the preprocessor defines use to compile the program.
String mPreprocessorDefines
Preprocessor options.
GLint mCompiled
Flag indicating if shader object successfully compiled.
static CmdOptimisation msCmdOptimisation
Command object for running the GLSL optimiser.
GLuint getGLProgramHandle() const
String mOptimisedSource
The optmised source of the program (may be blank until the shader is optmisied)
bool getOptimiserEnabled(void) const
Gets if the GLSL optimiser is enabled.
Interface describing a manual resource loader.
Abstract base class representing a high-level program (a vertex or fragment program).
void setOptimisedSource(const String &src)
Sets the optimised GLSL source.
GLuint getGLShaderHandle() const
GL Shader Handle.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15