- bind
void bind()
- get_attrib_location
GLint get_attrib_location(string name)
Queries an attrib location from OpenGL and caches it in attrib_locations.
If the location was already queried the cache is returned.
- get_frag_location
GLint get_frag_location(string name)
Queries an fragment-data location from OpenGL and caches it in frag_locations.
If the location was already queried the cache is returned.
- get_uniform_location
GLint get_uniform_location(string name)
Queries an uniform location from OpenGL and caches it in uniform_locations.
If the location was already queried the cache is returned.
- remove
void remove()
Deletes all shaders and the program.
- unbind
void unbind()
- uniform
void uniform(string name, T value)
void uniform(S name, T value)
If glamour gets compiled with version=gl3n support for
vectors, matrices and quaternions is added
- uniform
void uniform(S name, T value)
Undocumented in source. Be warned that the author may not have intended to support it.
- uniform1f
void uniform1f(string name, float value)
void uniform1f(GLint name, float value)
Sets a shader uniform. Consider the corresponding OpenGL for more information.
- uniform1i
void uniform1i(string name, int value)
void uniform1i(GLint name, int value)
- uniform2f
void uniform2f(string name, float value1, float value2)
void uniform2f(GLint name, float value1, float value2)
- uniform2fv
void uniform2fv(string name, float[] value)
void uniform2fv(GLint name, float[] value)
void uniform2fv(string name, float[] value, int count)
void uniform2fv(GLint name, float[] value, int count)
- uniform3fv
void uniform3fv(string name, float[] value)
void uniform3fv(string name, float[] value, int count)
void uniform3fv(GLint name, float[] value, int count)
- uniform4fv
void uniform4fv(string name, float[] value)
void uniform4fv(GLint name, float[] value)
void uniform4fv(string name, float[] value, int count)
void uniform4fv(GLint name, float[] value, int count)
- uniform_matrix3fv
void uniform_matrix3fv(string name, float[] value, GLboolean transpose)
void uniform_matrix3fv(GLint name, float[] value, GLboolean transpose)
void uniform_matrix3fv(string name, float[] value, GLboolean transpose, int count)
void uniform_matrix3fv(GLint name, float[] value, GLboolean transpose, int count)
- uniform_matrix4fv
void uniform_matrix4fv(string name, float[] value, GLboolean transpose)
void uniform_matrix4fv(GLint name, float[] value, GLboolean transpose)
void uniform_matrix4fv(string name, float[] value, GLboolean transpose, int count)
void uniform_matrix4fv(GLint name, float[] value, GLboolean transpose, int count)
Sets a shader uniform. Consider the corresponding OpenGL for more information.
Represents an OpenGL program with it's shaders. The constructor must be used to avoid segmentation faults.