|
Shader * | clone () |
|
void | use (bool forceReload=false) |
|
bool | setUniform (const Common::String &uniform, const Math::Matrix4 &m) |
|
bool | setUniform (const Common::String &uniform, const Math::Matrix3 &m) |
|
bool | setUniform (const Common::String &uniform, const Math::Vector4d &v) |
|
bool | setUniform (const Common::String &uniform, const Math::Vector3d &v) |
|
bool | setUniform (const Common::String &uniform, const Math::Vector2d &v) |
|
bool | setUniform (const Common::String &uniform, unsigned int x) |
|
bool | setUniform (const Common::String &uniform, const int size, const int *array) |
|
bool | setUniform1f (const Common::String &uniform, float f) |
|
GLint | getUniformLocation (const Common::String &uniform) const |
|
void | enableVertexAttribute (const char *attrib, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer) |
|
void | enableVertexAttribute (const char *attrib, GLuint vbo, GLint size, GLenum type, GLboolean normalized, GLsizei stride, uint32 offset) |
|
void | disableVertexAttribute (const char *attrib, int size, const float *data) |
|
template<int r> |
void | disableVertexAttribute (const char *attrib, const Math::Matrix< r, 1 > &m) |
|
bool | addAttribute (const char *attrib) |
|
VertexAttrib & | getAttributeAt (uint32 idx) |
|
VertexAttrib & | getAttribute (const char *attrib) |
|
bool | loadFromFiles (const char *vertex, const char *fragment, const char *const *attributes, int compatGLSLVersion=120) |
|
bool | loadFromStrings (const Common::String &name, const char *vertex, const char *fragment, const char *const *attributes, int compatGLSLVersion=0) |
|
bool | loadFromStringsArray (const Common::String &name, size_t vertexCount, const char *const *vertex, size_t fragmentCount, const char *const *fragment, const char *const *attributes) |
|
void | unbind () |
|
Common::String & | getError () |
|
bool | hasError () |
|
|
static GLuint | createBuffer (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage=GL_STATIC_DRAW) |
|
static void | freeBuffer (GLuint vbo) |
|
static Shader * | fromFiles (const char *vertex, const char *fragment, const char *const *attributes, int compatGLSLVersion=120) |
|
static Shader * | fromFiles (const char *shared, const char *const *attributes, int compatGLSLVersion=120) |
|
static Shader * | fromStrings (const Common::String &name, const char *vertex, const char *fragment, const char *const *attributes, int compatGLSLVersion=0) |
|