CLASSES
TagsA - Z

Buffer

Description

class Buffer

Constructor

new Buffer(engine, data, Float32Array, updatable, stride, postponeInternalCreation, instanced)

Parameters

Name Type Description
engine any
data number[] or Float32Array
updatable boolean
stride number
optional postponeInternalCreation boolean

Members

Float32Array : ()

instanceDivisor : number

Methods

createVertexBuffer(kind, offset, size, stride) VertexBuffer

Parameters

Name Type Description
kind string
offset number
size number

isUpdatable() boolean

getData() Nullable<number[]>

getBuffer() Nullable<WebGLBuffer>

getStrideSize() number

getIsInstanced() boolean

create(data, Float32Array) void

Parameters

Name Type Description
optional data Nullable<number[]> or Float32Array

update(data, Float32Array) void

Parameters

Name Type Description
data number[] or Float32Array

updateDirectly(data, offset, vertexCount) void

Parameters

Name Type Description
data Float32Array
offset number
optional vertexCount number

dispose() void