BufferGeometry class
Constructors
Properties
-
attributes
↔ Map<
String, BufferAttribute> -
The BufferGeometry attributes.
getter/setter pair
- bufferInfo ↔ BufferInfo
-
The buffer info.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- index ↔ BufferAttribute?
-
The BufferGeometry index.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
computeBufferInfo(
OpenGLContextES gl) → dynamic -
createAttributeBuffer(
OpenGLContextES gl, BufferAttribute bufferAttribute) → Buffer - Creates an attribute buffer.
-
createBufferFromBufferAttribute(
OpenGLContextES gl, BufferAttribute bufferAttribute, int drawType) → Buffer -
The
drawType
can be: -
createIndexBuffer(
OpenGLContextES gl, BufferAttribute bufferAttribute) → Buffer - Creates an index buffer.
-
getAttribute(
String name) → BufferAttribute - Returns the named attribute from the attributes Map.
-
getGLTypeForTypedArray(
BufferAttribute bufferAttribute) → int - Checks the BufferAttribute and returns the corresponding gl array type.
-
getMax(
List< int> array) → int - Return the maximum number in the array.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setAttribute(
String name, BufferAttribute attribute) → BufferGeometry - Sets an attribute to this geometry. Use this rather than the attributes property, because an internal hashmap of .attributes is maintained to speed up iterating over attributes.
-
setIndex(
dynamic index) → BufferGeometry - Sets the index list, the list can be a List
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited