Shader

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Classes

Uniform
class Uniform
Undocumented in source.

Functions

applyUniform
void applyUniform(Args args)
Undocumented in source. Be warned that the author may not have intended to support it.
bindAttr
void bindAttr(string[uint] attrs)
Undocumented in source. Be warned that the author may not have intended to support it.
bindFrag
void bindFrag(string[uint] frags)
Undocumented in source. Be warned that the author may not have intended to support it.
finish
void finish()
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
Uniform opIndex(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
start
void start(string folder)
Undocumented in source. Be warned that the author may not have intended to support it.
start
void start(string name, string vertex, string fragment)
Undocumented in source. Be warned that the author may not have intended to support it.
use
void use(Args args)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

load
Shader load(string dir, string[uint] attr, string[uint] frag)
Undocumented in source. Be warned that the author may not have intended to support it.
load
Shader load(string name, string[uint] attr, string[uint] frag, string vertex, string fragment)
Undocumented in source. Be warned that the author may not have intended to support it.
prepare
Shader prepare(string id)
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

shaderContainer
Shader[string] shaderContainer;
Undocumented in source.

Variables

failed
bool failed;
Undocumented in source.
name
string name;
Undocumented in source.
program
gl.Program program;
Undocumented in source.
shaderFragment
gl.Shader shaderFragment;
Undocumented in source.
shaderGeometry
gl.Shader shaderGeometry;
Undocumented in source.
shaderVertex
gl.Shader shaderVertex;
Undocumented in source.
uniforms
Uniform[string] uniforms;
Undocumented in source.
valid
bool valid;
Undocumented in source.

Inherited Members

From Loadable

Idle
anonymousenum Idle
Undocumented in source.
finish
void finish()
Undocumented in source. Be warned that the author may not have intended to support it.
loadState
size_t loadState [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
loadState
size_t loadState [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
loaded
bool loaded [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
loader
Loader loader;
Undocumented in source.
onLoaded
LoadedQueue onLoaded;
Undocumented in source.

Meta