OpenGL ES SDK for Android ARM Developer Center
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MaliSDK::Shader Class Reference

Functions for working with OpenGL ES shaders. More...

#include <Shader.h>

Static Public Member Functions

static void processShader (GLuint *shader, const char *filename, GLint shaderType)
 Create shader, load in source, compile, and dump debug as necessary. More...
 
static void processShader (GLuint *shaderPtr, const char *shaderSourcePtr, GLint shaderType)
 Create shader, load in source, compile, and dump debug if necessary. More...
 
static void processShader (GLuint *shaderPtr, const char *shaderSourcePtr, GLint shaderType)
 Create shader, load in source, compile, and dump debug as necessary. More...
 
static void processShader (GLuint *shaderObjectIdPtr, const char *filename, GLint shaderType)
 Create shader, load in source, compile, and dump debug as necessary. More...
 
static void processShader (GLuint *shaderObjectIdPtr, const char *filename, GLint shaderType)
 Create shader, load in source, compile, and dump debug as necessary. More...
 
static void processShader (GLuint *shaderObjectIdPtr, const char *filename, GLint shaderType)
 Create shader, load in source, compile, and dump debug as necessary. More...
 
static void processShader (GLuint *shaderObjectIdPtr, const char *filename, GLint shaderType)
 Create shader, load in source, compile, and dump debug as necessary. More...
 
static void processShader (GLuint *shaderObjectIdPtr, const char *filename, GLint shaderType)
 Create shader, load in source, compile, and dump debug as necessary. More...
 
static void processShader (GLuint *shaderObjectIdPtr, const char *filename, GLint shaderType)
 Create shader, load in source, compile, and dump debug as necessary. More...
 
static void processShader (GLuint *shaderObjectIdPtr, const char *filename, GLint shaderType)
 Create shader, load in source, compile, and dump debug as necessary. More...
 
static void processShader (GLuint *shaderObjectIdPtr, const char *filename, GLint shaderType)
 Create shader, load in source, compile, and dump debug as necessary. More...
 
static void processShader (GLuint *shaderObjectIdPtr, const char *filename, GLint shaderType)
 Create shader, load in source, compile, and dump debug as necessary. More...
 

Static Private Member Functions

static char * loadShader (const char *filename)
 Load shader source from a file into memory. More...
 
static char * loadShader (const char *filename)
 Load shader source from a file into memory. More...
 
static char * loadShader (const char *filename)
 Load shader source from a file into memory. More...
 
static char * loadShader (const char *filename)
 Load shader source from a file into memory. More...
 
static char * loadShader (const char *filename)
 Load shader source from a file into memory. More...
 
static char * loadShader (const char *filename)
 Load shader source from a file into memory. More...
 
static char * loadShader (const char *filename)
 Load shader source from a file into memory. More...
 
static char * loadShader (const char *filename)
 Load shader source from a file into memory. More...
 
static char * loadShader (const char *filename)
 Load shader source from a file into memory. More...
 
static char * loadShader (const char *filename)
 Load shader source from a file into memory. More...
 

Detailed Description

Functions for working with OpenGL ES shaders.

Definition at line 37 of file Shader.h.

Member Function Documentation

static char* MaliSDK::Shader::loadShader ( const char *  filename)
staticprivate

Load shader source from a file into memory.

Parameters
filenameFile name of the shader to load.
Returns
A character array containing the contents of the shader source file.
static char* MaliSDK::Shader::loadShader ( const char *  filename)
staticprivate

Load shader source from a file into memory.

Parameters
filenameFile name of the shader to load.
Returns
A character array containing the contents of the shader source file.
static char* MaliSDK::Shader::loadShader ( const char *  filename)
staticprivate

Load shader source from a file into memory.

Parameters
filenameFile name of the shader to load.
Returns
A character array containing the contents of the shader source file.
static char* MaliSDK::Shader::loadShader ( const char *  filename)
staticprivate

Load shader source from a file into memory.

Parameters
filenameFile name of the shader to load.
Returns
A character array containing the contents of the shader source file.
static char* MaliSDK::Shader::loadShader ( const char *  filename)
staticprivate

Load shader source from a file into memory.

Parameters
filenameFile name of the shader to load.
Returns
A character array containing the contents of the shader source file.
static char* MaliSDK::Shader::loadShader ( const char *  filename)
staticprivate

Load shader source from a file into memory.

Parameters
filenameFile name of the shader to load.
Returns
A character array containing the contents of the shader source file.
static char* MaliSDK::Shader::loadShader ( const char *  filename)
staticprivate

Load shader source from a file into memory.

Parameters
filenameFile name of the shader to load.
Returns
A character array containing the contents of the shader source file.
static char* MaliSDK::Shader::loadShader ( const char *  filename)
staticprivate

Load shader source from a file into memory.

Parameters
filenameFile name of the shader to load.
Returns
A character array containing the contents of the shader source file.
static char* MaliSDK::Shader::loadShader ( const char *  filename)
staticprivate

Load shader source from a file into memory.

Parameters
filenameFile name of the shader to load.
Returns
A character array containing the contents of the shader source file.
char * Shader::loadShader ( const char *  filename)
staticprivate

Load shader source from a file into memory.

Parameters
[in]filenameFile name of the shader to load.
Returns
A character array containing the contents of the shader source file.

Definition at line 73 of file Shader.cpp.

static void MaliSDK::Shader::processShader ( GLuint shaderObjectIdPtr,
const char *  filename,
GLint  shaderType 
)
static

Create shader, load in source, compile, and dump debug as necessary.

Note
Loads the OpenGL ES Shading Language code into memory. Creates a shader using with the required shaderType using glCreateShader(shaderType) and then compiles it using glCompileShader. The output from the compilation is checked for success and a log of the compilation errors is printed in the case of failure.
Parameters
shaderObjectIdPtrDeref will be used to store generated shader object ID. Cannot be NULL.
filenameName of a file containing OpenGL ES SL source code.
shaderTypePassed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER.
static void MaliSDK::Shader::processShader ( GLuint shaderObjectIdPtr,
const char *  filename,
GLint  shaderType 
)
static

Create shader, load in source, compile, and dump debug as necessary.

Note
Loads the OpenGL ES Shading Language code into memory. Creates a shader using with the required shaderType using glCreateShader(shaderType) and then compiles it using glCompileShader. The output from the compilation is checked for success and a log of the compilation errors is printed in the case of failure.
Parameters
shaderObjectIdPtrDeref will be used to store generated shader object ID. Cannot be NULL.
filenameName of a file containing OpenGL ES SL source code.
shaderTypePassed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER.
void Shader::processShader ( GLuint shader,
const char *  filename,
GLint  shaderType 
)
static

Create shader, load in source, compile, and dump debug as necessary.

Loads the OpenGL ES Shading Language code into memory. Creates a shader using with the required shaderType using glCreateShader(shaderType) and then compiles it using glCompileShader. The output from the compilation is checked for success and a log of the compilation errors is printed in the case of failure.

Parameters
[out]shaderThe shader ID of the newly compiled shader.
[in]filenameFilename of a file containing OpenGL ES SL source code.
[in]shaderTypePassed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER.

Definition at line 29 of file Shader.cpp.

static void MaliSDK::Shader::processShader ( GLuint shaderObjectIdPtr,
const char *  filename,
GLint  shaderType 
)
static

Create shader, load in source, compile, and dump debug as necessary.

Note
Loads the OpenGL ES Shading Language code into memory. Creates a shader using with the required shaderType using glCreateShader(shaderType) and then compiles it using glCompileShader. The output from the compilation is checked for success and a log of the compilation errors is printed in the case of failure.
Parameters
shaderObjectIdPtrDeref will be used to store generated shader object ID. Cannot be NULL.
filenameName of a file containing OpenGL ES SL source code.
shaderTypePassed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER.
static void MaliSDK::Shader::processShader ( GLuint shaderObjectIdPtr,
const char *  filename,
GLint  shaderType 
)
static

Create shader, load in source, compile, and dump debug as necessary.

Note
Loads the OpenGL ES Shading Language code into memory. Creates a shader using with the required shaderType using glCreateShader(shaderType) and then compiles it using glCompileShader. The output from the compilation is checked for success and a log of the compilation errors is printed in the case of failure.
Parameters
shaderObjectIdPtrDeref will be used to store generated shader object ID. Cannot be NULL.
filenameName of a file containing OpenGL ES SL source code.
shaderTypePassed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER.
static void MaliSDK::Shader::processShader ( GLuint shaderObjectIdPtr,
const char *  filename,
GLint  shaderType 
)
static

Create shader, load in source, compile, and dump debug as necessary.

Note
Loads the OpenGL ES Shading Language code into memory. Creates a shader using with the required shaderType using glCreateShader(shaderType) and then compiles it using glCompileShader. The output from the compilation is checked for success and a log of the compilation errors is printed in the case of failure.
Parameters
shaderObjectIdPtrDeref will be used to store generated shader object ID. Cannot be NULL.
filenameName of a file containing OpenGL ES SL source code.
shaderTypePassed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER.
static void MaliSDK::Shader::processShader ( GLuint shaderObjectIdPtr,
const char *  filename,
GLint  shaderType 
)
static

Create shader, load in source, compile, and dump debug as necessary.

Note
Loads the OpenGL ES Shading Language code into memory. Creates a shader using with the required shaderType using glCreateShader(shaderType) and then compiles it using glCompileShader. The output from the compilation is checked for success and a log of the compilation errors is printed in the case of failure.
Parameters
shaderObjectIdPtrDeref will be used to store generated shader object ID. Cannot be NULL.
filenameName of a file containing OpenGL ES SL source code.
shaderTypePassed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER.
static void MaliSDK::Shader::processShader ( GLuint shaderObjectIdPtr,
const char *  filename,
GLint  shaderType 
)
static

Create shader, load in source, compile, and dump debug as necessary.

Note
Loads the OpenGL ES Shading Language code into memory. Creates a shader using with the required shaderType using glCreateShader(shaderType) and then compiles it using glCompileShader. The output from the compilation is checked for success and a log of the compilation errors is printed in the case of failure.
Parameters
shaderObjectIdPtrDeref will be used to store generated shader object ID. Cannot be NULL.
filenameName of a file containing OpenGL ES SL source code.
shaderTypePassed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER.
static void MaliSDK::Shader::processShader ( GLuint shaderObjectIdPtr,
const char *  filename,
GLint  shaderType 
)
static

Create shader, load in source, compile, and dump debug as necessary.

Note
Loads the OpenGL ES Shading Language code into memory. Creates a shader using with the required shaderType using glCreateShader(shaderType) and then compiles it using glCompileShader. The output from the compilation is checked for success and a log of the compilation errors is printed in the case of failure.
Parameters
shaderObjectIdPtrDeref will be used to store generated shader object ID. Cannot be NULL.
filenameName of a file containing OpenGL ES SL source code.
shaderTypePassed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER.
static void MaliSDK::Shader::processShader ( GLuint shaderObjectIdPtr,
const char *  filename,
GLint  shaderType 
)
static

Create shader, load in source, compile, and dump debug as necessary.

Note
Loads the OpenGL ES Shading Language code into memory. Creates a shader using with the required shaderType using glCreateShader(shaderType) and then compiles it using glCompileShader. The output from the compilation is checked for success and a log of the compilation errors is printed in the case of failure.
Parameters
shaderObjectIdPtrDeref will be used to store generated shader object ID. Cannot be NULL.
filenameName of a file containing OpenGL ES SL source code.
shaderTypePassed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER.
static void MaliSDK::Shader::processShader ( GLuint shaderPtr,
const char *  shaderSourcePtr,
GLint  shaderType 
)
static

Create shader, load in source, compile, and dump debug if necessary.

Creates a shader using with the required shaderType using glCreateShader(shaderType) and then compiles it using glCompileShader. The output from the compilation is checked for success and a log of the compilation errors is printed in the case of failure.

Parameters
[out]shaderPtrThe shader ID of the newly compiled shader. Cannot be NULL.
[in]shaderSourcePtrContains OpenGL ES SL source code. Cannot be NULL.
[in]shaderTypePassed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER.
static void MaliSDK::Shader::processShader ( GLuint shaderPtr,
const char *  shaderSourcePtr,
GLint  shaderType 
)
static

Create shader, load in source, compile, and dump debug as necessary.

Loads the OpenGL ES Shading Language code into memory. Creates a shader using with the required shaderType using glCreateShader(shaderType) and then compiles it using glCompileShader. The output from the compilation is checked for success and a log of the compilation errors is printed in the case of failure.

Parameters
[out]shaderPtrThe shader ID of the newly compiled shader. Cannot be NULL.
[in]shaderSourcePtrContains OpenGL ES SL source code. Cannot be NULL.
[in]shaderTypePassed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER.

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