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 : ()

Methods

createVertexBuffer(kind, offset, size, stride) → VertexBuffer

Parameters

Name Type Description
kind string
offset number
size number

isUpdatable() → boolean

getData() → number[]

getBuffer() → WebGLBuffer

getStrideSize() → number

getIsInstanced() → boolean

create(data, Float32Array) → void

Parameters

Name Type Description
optional data 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