Functions for working with OpenGL ES shaders.
More...
#include <Shader.h>
|
| static void | processShader (GLuint *shader, const char *filename, GLint shaderType) |
| | Create shader, load in source, compile, and dump debug as necessary.
|
| |
| static void | processShader (GLuint *shader, const char *filename, GLint shaderType) |
| | Create shader, load in source, compile, and dump debug as necessary.
|
| |
| static void | processShader (GLuint *shader, const char *filename, GLint shaderType) |
| | Create shader, load in source, compile, and dump debug as necessary.
|
| |
| static void | processShader (GLuint *shader, const char *filename, GLint shaderType) |
| | Create shader, load in source, compile, and dump debug as necessary.
|
| |
|
| static char * | loadShader (const char *filename) |
| | Load shader source from a file into memory.
|
| |
| static char * | loadShader (const char *filename) |
| | Load shader source from a file into memory.
|
| |
| static char * | loadShader (const char *filename) |
| | Load shader source from a file into memory.
|
| |
| static char * | loadShader (const char *filename) |
| | Load shader source from a file into memory.
|
| |
Functions for working with OpenGL ES shaders.
| static char* MaliSDK::Shader::loadShader |
( |
const char * |
filename | ) |
|
|
staticprivate |
Load shader source from a file into memory.
- Parameters
-
| [in] | filename | File 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
-
| [in] | filename | File 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
-
| [in] | filename | File 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] | filename | File name of the shader to load. |
- Returns
- A character array containing the contents of the shader source file.
| static void MaliSDK::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] | 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. |
| static void MaliSDK::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] | 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. |
| static void MaliSDK::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] | 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. |
| 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] | 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. |
The documentation for this class was generated from the following files:
- /home/jenkins/workspace/graphics_opengles_sdk_gerrit/Architecture/x86/OS/linux/simple_framework/inc/Shader.h
- /home/jenkins/workspace/graphics_opengles_sdk_gerrit/Architecture/x86/OS/linux/samples/opengles_30/astc_textures/Shader.h
- /home/jenkins/workspace/graphics_opengles_sdk_gerrit/Architecture/x86/OS/linux/samples/opengles_30/metaballs/Shader.h
- /home/jenkins/workspace/graphics_opengles_sdk_gerrit/Architecture/x86/OS/linux/samples/opengles_30/skybox/Shader.h
- /home/jenkins/workspace/graphics_opengles_sdk_gerrit/Architecture/x86/OS/linux/simple_framework/src/Shader.cpp
- /home/jenkins/workspace/graphics_opengles_sdk_gerrit/Architecture/x86/OS/linux/samples/opengles_30/astc_textures/Shader.cpp
- /home/jenkins/workspace/graphics_opengles_sdk_gerrit/Architecture/x86/OS/linux/samples/opengles_30/metaballs/Shader.cpp
- /home/jenkins/workspace/graphics_opengles_sdk_gerrit/Architecture/x86/OS/linux/samples/opengles_30/skybox/Shader.cpp