Shader

Undocumented in source.

Constructors

this
this(string name, string vertex, string fragment, bool preloaded)
Undocumented in source.

Members

Functions

bindAmbientLight
void bindAmbientLight(AmbientLight light)
Undocumented in source. Be warned that the author may not have intended to support it.
bindDirectionalLight
void bindDirectionalLight(DirectionalLight light)
Undocumented in source. Be warned that the author may not have intended to support it.
bindMaterial
void bindMaterial(Material material)
Undocumented in source. Be warned that the author may not have intended to support it.
bindUniform1f
void bindUniform1f(ShaderUniform uniform, float value)
Undocumented in source. Be warned that the author may not have intended to support it.
bindUniformMatrix4fv
void bindUniformMatrix4fv(ShaderUniform uniform, mat4 matrix)
Undocumented in source. Be warned that the author may not have intended to support it.
bindUniforms
void bindUniforms()
Undocumented in source. Be warned that the author may not have intended to support it.
compile
void compile(string vertexBody, string fragmentBody)
Undocumented in source. Be warned that the author may not have intended to support it.
getUniformLocation
int getUniformLocation(ShaderUniform uniform)
Undocumented in source. Be warned that the author may not have intended to support it.
shutdown
void shutdown()
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin Property!("uint", "programID", "protected")
Undocumented in source.
__anonymous
mixin Property!("uint", "vertexShaderID", "protected")
Undocumented in source.
__anonymous
mixin Property!("uint", "fragmentShaderID", "protected")
Undocumented in source.
__anonymous
mixin Property!("string", "shaderName", "protected")
Undocumented in source.

Variables

uniformLocations
int[string] uniformLocations;
Undocumented in source.

Meta