|
Rasterfarm-SDK
|
ADT class for creating the OpenGL-ES 2.0 shader object. More...
#include <shader.h>
Public Member Functions | |
| void | loadCode (ShaderType type, const char *shaderSourceFile) |
| ShaderType | getType () const |
| ShaderHandle | getHandle () const |
| String | getCode () const |
| size_t | getHash () |
Static Public Member Functions | |
| static Shader * | create (ShaderType type, const char *shaderSourceFile=nullptr) |
| static Shader * | create (ShaderType type, const String &shaderCode) |
| static String | loadCode (const char *const shaderSourceFile) |
| static ShaderHandle | compile (ShaderType type, const char *shaderSrc) |
Protected Attributes | |
| String | shaderCode |
| size_t | hash |
| ShaderHandle | shaderHandle |
| ShaderType | type |
Friends | |
| class | Application |
ADT class for creating the OpenGL-ES 2.0 shader object.
This abstracts-away vertex and fragment shader binaries for GeometricObject. All derived objects for this class should be singletons.
|
static |
The shader compiliation function.
| type | can be either VERTEX_SHADER or FRAGMENT_SHADER |
| sourceCode | String containing the GLSL code. |
|
static |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
Loads the vertex and fragment shader source code from the filesystem.
| vertexShaderSourceFile | The file containing the vertex shader code. |
| fragmentShaderSourceFile | The file containing the fragment shader code. |
| void Shader::loadCode | ( | ShaderType | type, |
| const char * | shaderSourceFile ) |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |