UniformBuffer class

class UniformBuffer

Annotations
  • @JS()

Constructors

UniformBuffer(Engine engine, [List<num> data, bool dynamic])

Properties

hashCode int
The hash code for this object.
no setterinherited
isSync bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updateColor3 ↔ void Function(String name, Color3 color, String suffix)
getter/setter pair
updateColor4 ↔ void Function(String name, Color3 color, num alpha, String suffix)
getter/setter pair
updateFloat ↔ void Function(String name, num x)
getter/setter pair
updateFloat2 ↔ void Function(String name, num x, num y, String suffix)
getter/setter pair
updateFloat3 ↔ void Function(String name, num x, num y, num z, String suffix)
getter/setter pair
updateFloat4 ↔ void Function(String name, num x, num y, num z, num w, String suffix)
getter/setter pair
updateMatrix ↔ void Function(String name, Matrix mat)
getter/setter pair
updateMatrix2x2 ↔ void Function(String name, Float32List matrix)
getter/setter pair
updateMatrix3x3 ↔ void Function(String name, Float32List matrix)
getter/setter pair
updateVector3 ↔ void Function(String name, Vector3 vector)
getter/setter pair
updateVector4 ↔ void Function(String name, Vector4 vector)
getter/setter pair
useUbo bool
no setter

Methods

addColor3(String name, Color3 color) → void
addColor4(String name, Color3 color, num alpha) → void
addFloat2(String name, num x, num y) → void
addFloat3(String name, num x, num y, num z) → void
addMatrix(String name, Matrix mat) → void
addMatrix2x2(String name) → void
addMatrix3x3(String name) → void
addUniform(String name, dynamic size) → void
addVector3(String name, Vector3 vector) → void
bindToEffect(Effect effect, String name) → void
create() → void
dispose() → void
getBuffer() DataBuffer
getData() Float32List
isDynamic() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setTexture(String name, BaseTexture texture) → void
toString() String
A string representation of this object.
inherited
update() → void
updateUniform(String uniformName, Float32List data, num size) → void
updateUniformDirectly(String uniformName, Float32List data) → void

Operators

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