CLASSES
TagsA - Z

Buffer

Description

class Buffer

Constructor

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

Parameters

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

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) → void

Parameters

Name Type Description
optional data number[]

update(data) → void

Parameters

Name Type Description
data number[]

updateDirectly(data, offset, vertexCount) → void

Parameters

Name Type Description
data Float32Array
offset number
optional vertexCount number

dispose() → void