Shader

Shader.

Constructors

this
this(uint programID, uint vertexID, uint fragmentID, bool linked, uint geometryID)

Shader constructor.

this
this(Shader shader)
Undocumented in source.

Members

Functions

dispose
void dispose()
Undocumented in source. Be warned that the author may not have intended to support it.
getUniformLocation
int getUniformLocation(string uniformName)

Returns location of an uniform variable.

link
void link()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

fragmentID
uint fragmentID [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
geometryID
uint geometryID [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
name
string name [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
programID
uint programID [@property getter]

Properties

vertexID
uint vertexID [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

createShader
uint createShader(uint program, string fileName, uint type)

Generates and compiles a shader

load
Shader load(string shaderName, bool linkProgram)

Loads a shader.

Variables

modelMatrix
int modelMatrix;
Undocumented in source.
projectionMatrix
int projectionMatrix;
Undocumented in source.
viewMatrix
int viewMatrix;

Shader uniforms locations

Inherited Members

From IAsset

load
void load(string fileName, ...)
Undocumented in source.
dispose
void dispose()
Undocumented in source.

Meta