GLShader

Undocumented in source.

Constructors

this
this(ShaderCode code)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Enums

LogType
enum LogType
Undocumented in source.

Functions

Attach
void Attach()

Attach attaches the shader.

Detach
void Detach()

Detatch detatches the shader. (Binds shader 0)

GetUniform
int GetUniform(string name)

GetUniform gets the position of a uniform.

HasUniform
bool HasUniform(string name)

HasUniform checks whenever the shader contains a unform with name "name" Returns true if it exists, false otherwise.

SetUniform
void SetUniform(int location, float value)
Undocumented in source. Be warned that the author may not have intended to support it.
SetUniform
void SetUniform(int location, Vector2 value)
Undocumented in source. Be warned that the author may not have intended to support it.
SetUniform
void SetUniform(int location, Vector3 value)
Undocumented in source. Be warned that the author may not have intended to support it.
SetUniform
void SetUniform(int location, Vector4 value)
Undocumented in source. Be warned that the author may not have intended to support it.
SetUniform
void SetUniform(int location, int value)
Undocumented in source. Be warned that the author may not have intended to support it.
SetUniform
void SetUniform(int location, Vector2i value)
Undocumented in source. Be warned that the author may not have intended to support it.
SetUniform
void SetUniform(int location, Vector3i value)
Undocumented in source. Be warned that the author may not have intended to support it.
SetUniform
void SetUniform(int location, Vector4i value)
Undocumented in source. Be warned that the author may not have intended to support it.
SetUniform
void SetUniform(int location, Matrix2x2 value)
Undocumented in source. Be warned that the author may not have intended to support it.
SetUniform
void SetUniform(int location, Matrix3x3 value)
Undocumented in source. Be warned that the author may not have intended to support it.
SetUniform
void SetUniform(int location, Matrix4x4 value)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

Attached
bool Attached [@property getter]

Gets whenever this shader is attached.

FragGL
GLchar* FragGL [@property getter]

Fragment Shader Id.

GeoGL
GLchar* GeoGL [@property getter]

Geometry Shader Id.

VertGL
GLchar* VertGL [@property getter]

Vertex Shader Id.

Inherited Members

From Shader

Attached
bool Attached [@property getter]
Undocumented in source.
Attach
void Attach()
Undocumented in source.
Detach
void Detach()
Undocumented in source.
SetUniform
void SetUniform(int location, float value)
Undocumented in source.
SetUniform
void SetUniform(int location, Vector2 value)
Undocumented in source.
SetUniform
void SetUniform(int location, Vector3 value)
Undocumented in source.
SetUniform
void SetUniform(int location, Vector4 value)
Undocumented in source.
SetUniform
void SetUniform(int location, int value)
Undocumented in source.
SetUniform
void SetUniform(int location, Vector2i value)
Undocumented in source.
SetUniform
void SetUniform(int location, Vector3i value)
Undocumented in source.
SetUniform
void SetUniform(int location, Vector4i value)
Undocumented in source.
SetUniform
void SetUniform(int location, Matrix2x2 value)
Undocumented in source.
SetUniform
void SetUniform(int location, Matrix3x3 value)
Undocumented in source.
SetUniform
void SetUniform(int location, Matrix4x4 value)
Undocumented in source.
GetUniform
int GetUniform(string name)
Undocumented in source.
HasUniform
bool HasUniform(string name)
Undocumented in source.

Meta