GraphicsEffect

Base class for graphics effect / program - e.g. for OpenGL shader program

Members

Functions

draw
void draw(Mesh mesh, bool wireframe)
Undocumented in source.
getVertexElementLocation
int getVertexElementLocation(VertexElementType type)

get location for vertex attribute

hasUniform
bool hasUniform(DefaultUniform id)

returns true if effect has uniform

hasUniform
bool hasUniform(string uniformName)

returns true if effect has uniform

setUniform
void setUniform(string uniformName, const(mat4) matrix)
Undocumented in source.
setUniform
void setUniform(string uniformName, const(mat4)[] matrix)
Undocumented in source.
setUniform
void setUniform(string uniformName, float v)
Undocumented in source.
setUniform
void setUniform(string uniformName, float[] v)
Undocumented in source.
setUniform
void setUniform(string uniformName, vec2 vec)
Undocumented in source.
setUniform
void setUniform(string uniformName, vec2[] vec)
Undocumented in source.
setUniform
void setUniform(string uniformName, vec3 vec)
Undocumented in source.
setUniform
void setUniform(string uniformName, vec3[] vec)
Undocumented in source.
setUniform
void setUniform(string uniformName, vec4 vec)
Undocumented in source.
setUniform
void setUniform(string uniformName, vec4[] vec)
Undocumented in source.
setUniform
void setUniform(DefaultUniform id, const(mat4) matrix)
Undocumented in source.
setUniform
void setUniform(DefaultUniform id, const(mat4)[] matrix)
Undocumented in source.
setUniform
void setUniform(DefaultUniform id, float v)
Undocumented in source.
setUniform
void setUniform(DefaultUniform id, float[] v)
Undocumented in source.
setUniform
void setUniform(DefaultUniform id, vec2 vec)
Undocumented in source.
setUniform
void setUniform(DefaultUniform id, vec2[] vec)
Undocumented in source.
setUniform
void setUniform(DefaultUniform id, vec3 vec)
Undocumented in source.
setUniform
void setUniform(DefaultUniform id, vec3[] vec)
Undocumented in source.
setUniform
void setUniform(DefaultUniform id, vec4 vec)
Undocumented in source.
setUniform
void setUniform(DefaultUniform id, vec4[] vec)
Undocumented in source.

Inherited Members

From RefCountedObject

_refCount
int _refCount;

count of references to this object from Ref

refCount
int refCount [@property getter]

returns current value of reference counter

addRef
void addRef()

increments reference counter

releaseRef
void releaseRef()

decrement reference counter, destroy object if no more references left

~this
~this()
Undocumented in source.

Meta