OpenGL ES SDK for Android
ARM Developer Center
|
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... | |
|
staticprivate |
Load shader source from a file into memory.
filename | File name of the shader to load. |
|
staticprivate |
Load shader source from a file into memory.
filename | File name of the shader to load. |
|
staticprivate |
Load shader source from a file into memory.
filename | File name of the shader to load. |
|
staticprivate |
Load shader source from a file into memory.
filename | File name of the shader to load. |
|
staticprivate |
Load shader source from a file into memory.
filename | File name of the shader to load. |
|
staticprivate |
Load shader source from a file into memory.
filename | File name of the shader to load. |
|
staticprivate |
Load shader source from a file into memory.
filename | File name of the shader to load. |
|
staticprivate |
Load shader source from a file into memory.
filename | File name of the shader to load. |
|
staticprivate |
Load shader source from a file into memory.
filename | File name of the shader to load. |
|
staticprivate |
Load shader source from a file into memory.
[in] | filename | File name of the shader to load. |
Definition at line 73 of file Shader.cpp.
|
static |
Create shader, load in source, compile, and dump debug as necessary.
shaderObjectIdPtr | Deref will be used to store generated shader object ID. Cannot be NULL. |
filename | Name of a file containing OpenGL ES SL source code. |
shaderType | Passed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER. |
|
static |
Create shader, load in source, compile, and dump debug as necessary.
shaderObjectIdPtr | Deref will be used to store generated shader object ID. Cannot be NULL. |
filename | Name of a file containing OpenGL ES SL source code. |
shaderType | Passed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER. |
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.
[out] | shader | The shader ID of the newly compiled shader. |
[in] | filename | Filename of a file containing OpenGL ES SL source code. |
[in] | shaderType | Passed 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 |
Create shader, load in source, compile, and dump debug as necessary.
shaderObjectIdPtr | Deref will be used to store generated shader object ID. Cannot be NULL. |
filename | Name of a file containing OpenGL ES SL source code. |
shaderType | Passed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER. |
|
static |
Create shader, load in source, compile, and dump debug as necessary.
shaderObjectIdPtr | Deref will be used to store generated shader object ID. Cannot be NULL. |
filename | Name of a file containing OpenGL ES SL source code. |
shaderType | Passed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER. |
|
static |
Create shader, load in source, compile, and dump debug as necessary.
shaderObjectIdPtr | Deref will be used to store generated shader object ID. Cannot be NULL. |
filename | Name of a file containing OpenGL ES SL source code. |
shaderType | Passed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER. |
|
static |
Create shader, load in source, compile, and dump debug as necessary.
shaderObjectIdPtr | Deref will be used to store generated shader object ID. Cannot be NULL. |
filename | Name of a file containing OpenGL ES SL source code. |
shaderType | Passed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER. |
|
static |
Create shader, load in source, compile, and dump debug as necessary.
shaderObjectIdPtr | Deref will be used to store generated shader object ID. Cannot be NULL. |
filename | Name of a file containing OpenGL ES SL source code. |
shaderType | Passed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER. |
|
static |
Create shader, load in source, compile, and dump debug as necessary.
shaderObjectIdPtr | Deref will be used to store generated shader object ID. Cannot be NULL. |
filename | Name of a file containing OpenGL ES SL source code. |
shaderType | Passed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER. |
|
static |
Create shader, load in source, compile, and dump debug as necessary.
shaderObjectIdPtr | Deref will be used to store generated shader object ID. Cannot be NULL. |
filename | Name of a file containing OpenGL ES SL source code. |
shaderType | Passed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER. |
|
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.
[out] | shaderPtr | The shader ID of the newly compiled shader. Cannot be NULL. |
[in] | shaderSourcePtr | Contains OpenGL ES SL source code. Cannot be NULL. |
[in] | shaderType | Passed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER. |
|
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.
[out] | shaderPtr | The shader ID of the newly compiled shader. Cannot be NULL. |
[in] | shaderSourcePtr | Contains OpenGL ES SL source code. Cannot be NULL. |
[in] | shaderType | Passed to glCreateShader to define the type of shader being processed. Must be GL_VERTEX_SHADER or GL_FRAGMENT_SHADER. |