GLBufferAttribute class
This buffer attribute class does not construct a VBO. Instead, it uses
whatever VBO is passed in constructor and can later be altered via the
buffer
property.
It is required to pass additional params alongside the VBO. Those are: the GL context, the GL data type, the number of components per vertex, the number of bytes per component, and the number of vertices.
The most common use case for this class is when some kind of GPGPU calculation interferes or even produces the VBOs in question.
- Inheritance
-
- Object
- BaseBufferAttribute<
NativeArray< num> > - GLBufferAttribute
Constructors
- GLBufferAttribute(int buffer, String type, int itemSize, int elementSize, int count)
-
buffer
— Must be a WebGLBuffer.
Properties
-
array
↔ NativeArray<
num> -
getter/setter pairinherited
- buffer ↔ int?
-
getter/setter pairinherited
- count ↔ int
-
getter/setter pairinherited
- data ↔ InterleavedBuffer?
-
getter/setter pairinherited
- elementSize ↔ int?
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- itemSize ↔ int
-
getter/setter pairinherited
- name ↔ String?
-
getter/setter pairinherited
- needsUpdate ← bool
-
no getter
- normalized ↔ bool
-
getter/setter pairinherited
- onUploadCallback ↔ void Function()?
-
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ String
-
getter/setter pairinherited
-
updateRange
↔ Map<
String, int> ? -
getter/setter pairinherited
- usage ↔ int
-
getter/setter pairinherited
- version ↔ int
-
getter/setter pairinherited
Methods
-
dispose(
) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setBuffer(
int buffer) → GLBufferAttribute -
Sets the
buffer
property. -
setCount(
int count) → GLBufferAttribute -
Sets the
count
property. -
setItemSize(
int itemSize) → GLBufferAttribute -
Sets the
itemSize
property. -
setType(
String type, int elementSize) → GLBufferAttribute -
Sets the both
type
andelementSize
properties. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited