Shader

A shader

Constructors

this
this(string vertex, string fragment)

Creates a new shader object from source

Destructor

~this
~this()

Destructor

Members

Functions

getUniformLocation
GLint getUniformLocation(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
setUniform
void setUniform(GLint uniform, bool value)
Undocumented in source. Be warned that the author may not have intended to support it.
setUniform
void setUniform(GLint uniform, int value)
Undocumented in source. Be warned that the author may not have intended to support it.
setUniform
void setUniform(GLint uniform, float value)
Undocumented in source. Be warned that the author may not have intended to support it.
setUniform
void setUniform(GLint uniform, vec2 value)
Undocumented in source. Be warned that the author may not have intended to support it.
setUniform
void setUniform(GLint uniform, vec3 value)
Undocumented in source. Be warned that the author may not have intended to support it.
setUniform
void setUniform(GLint uniform, vec4 value)
Undocumented in source. Be warned that the author may not have intended to support it.
setUniform
void setUniform(GLint uniform, mat4 value)
Undocumented in source. Be warned that the author may not have intended to support it.
use
void use()

Use the shader

Meta