InterleavedBufferAttribute

Constructor

InterleavedBufferAttribute(interleavedBuffer : InterleavedBuffer, itemSize : Integer, offset : Integer, normalized : Boolean)

Properties

.data : InterleavedBuffer

The InterleavedBuffer instance passed in the constructor.

.array : TypedArray

The value of data.array.

.count : Integer

The value of data.count. If the buffer is storing a 3-component item (such as a position, normal, or color), then this will count the number of such items stored.

.itemSize : Integer

How many values make up each item.

.offset : Integer

The offset in the underlying array buffer where an item starts.

.normalized : Boolean

Default is true.

.isInterleavedBufferAttribute : Boolean

Default is true.

Methods

.getX (index : Integer) : Number

Returns the x component of the item at the given index.

.getY (index : Integer) : Number

Returns the y component of the item at the given index.

.getZ (index : Integer) : Number

Returns the z component of the item at the given index.

.getW (index : Integer) : Number

Returns the w component of the item at the given index.

.setX (index : Integer, x : Float) : null

Sets the x component of the item at the given index.

.setY (index : Integer, y : Float) : null

Sets the y component of the item at the given index.

.setZ (index : Integer, z : Float) : null

Sets the z component of the item at the given index.

.setW (index : Integer, w : Float) : null

Sets the w component of the item at the given index.

.setXY (index : Integer, x : Float, y : Float) : null

Sets the x and y components of the item at the given index.

.setXYZ (index : Integer, x : Float, y : Float, z : Float) : null

Sets the x, y and z components of the item at the given index.

.setXYZW (index : Integer, x : Float, y : Float, z : Float, w : Float) : null

Sets the x, y, z and w components of the item at the given index.

Source

For more info on how to obtain the source code of this module see this page.