Shader class

Inheritance

Constructors

Shader(Shader resource, {List<UniformSlot> slots = const []})

Properties

hashCode int
The hash code for this object.
no setterinherited
resource Shader
The resource data.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bind(GraphicsDevice device) → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setColor(String key, Color color) → void
setFloat(String key, double value) → void
Set a double at the given key on the buffer.
setMatrix2(String key, Matrix2 matrix) → void
Set a Matrix2 at the given key on the buffer.
setMatrix3(String key, Matrix3 matrix) → void
Set a Matrix3 at the given key on the buffer.
setMatrix4(String key, Matrix4 matrix) → void
Set a Matrix4 at the given key on the buffer.
setTexture(String key, Texture texture) → void
Set a Texture at the given key on the buffer.
setUint(String key, int value) → void
Set an int (encoded as uint) at the given key on the buffer.
setVector2(String key, Vector2 vector) → void
Set a Vector2 at the given key on the buffer.
setVector3(String key, Vector3 vector) → void
Set a Vector3 at the given key on the buffer.
setVector4(String key, Vector4 vector) → void
Set a Vector4 at the given key on the buffer.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited