Shader class

Constructors

Shader.new({required String asset, required String name, required List<UniformSlot> slots})
Shader.fragment({required String asset, required List<UniformSlot> slots})
Shader.vertex({required String asset, required List<UniformSlot> slots})

Properties

asset String
final
hashCode int
The hash code for this object.
no setterinherited
instances Map<String, UniformInstance>
final
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slots List<UniformSlot>
final

Methods

bind(GraphicsDevice device) → void
compile() ShaderResource
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseKey(String key) List<String?>
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