A Shader for rendering default OpenGL logic to the graphics card. More...
#include <GLESShader.h>
Public Types | |
enum | ShaderPart { Vertex , Fragment , Geometry } |
enum | ShaderType { e_simple_points , e_points , e_linework , e_solid , e_solid_grid , e_solid_texture , e_shader_type_size , e_all } |
Public Member Functions | |
void | bind () |
void | compile (ShaderPart type, const char *src) |
void | compileAndLink () |
void | compileShader (ShaderPart type, const String &shader) |
GLESShader (ShaderType type, bool is_integer, const DynamicPointer< GLESGraphicsDevice > &device) | |
uint04 | id () const |
void | linkShader () |
template<class t_type > | |
void | setUniformValue (const char *const location, const t_type &value) |
void | setUniformValue (int location, const Buffer< fltp04 > &value) |
void | setUniformValue (int location, const fltp04 &value) |
template<size_t t_size> | |
void | setUniformValue (int location, const fltp04(&value)[t_size]) |
void | setUniformValue (int location, const Matrix< fltp04 > &value) |
void | setUniformValue (int location, const RGBColor &value) |
template<size_t t_size> | |
void | setUniformValue (int location, const RGBColor(&value)[t_size]) |
void | setUniformValue (int location, const uint04 &value) |
template<size_t t_size> | |
void | setUniformValue (int location, const uint04(&value)[t_size]) |
void | setUniformValue (int location, const Vector< 3, fltp04 > &value) |
void | setUniformValue (int location, const Vector< 3, sint04 > &value) |
void | setUniformValue (int location, const Vector< 4, fltp04 > &value) |
void | setUniformValue (int location, const Vector< 4, sint04 > &value) |
template<uint01 t_size> | |
void | setUniformValue (int location, const Vector< t_size, fltp04 > &value) |
template<uint01 t_size> | |
void | setUniformValue (int location, const Vector< t_size, RGBColor > &value) |
int | uniformLocation (const char *const location) const |
String | versionedShaderCode (ShaderPart type, const char *src) const |
~GLESShader () | |
A Shader for rendering default OpenGL logic to the graphics card.
enum ShaderPart |
enum ShaderType |
GLESShader | ( | ShaderType | type, |
bool | is_integer, | ||
const DynamicPointer< GLESGraphicsDevice > & | device ) |
~GLESShader | ( | ) |
void bind | ( | ) |
void compile | ( | ShaderPart | type, |
const char * | src ) |
void compileAndLink | ( | ) |
void compileShader | ( | ShaderPart | type, |
const String & | shader ) |
uint04 id | ( | ) | const |
void linkShader | ( | ) |
|
inline |
void setUniformValue | ( | int | location, |
const fltp04 & | value ) |
|
inline |
void setUniformValue | ( | int | location, |
const RGBColor & | value ) |
|
inline |
void setUniformValue | ( | int | location, |
const uint04 & | value ) |
|
inline |
|
inline |
|
inline |
int uniformLocation | ( | const char *const | location | ) | const |
String versionedShaderCode | ( | ShaderPart | type, |
const char * | src ) const |