Description
class Buffer
Constructor
new Buffer(engine, data, updatable, stride, postponeInternalCreation, instanced)
Parameters
|
Name |
Type |
Description |
|
engine |
any |
|
|
data |
FloatArray |
|
|
updatable |
boolean |
|
|
stride |
number |
|
optional |
postponeInternalCreation |
boolean |
|
Members
instanceDivisor : number
Methods
createVertexBuffer(kind, offset, size, stride) → VertexBuffer
Parameters
|
Name |
Type |
Description |
|
kind |
string |
|
|
offset |
number |
|
|
size |
number |
|
isUpdatable() → boolean
getData() → Nullable<FloatArray>
getBuffer() → Nullable<WebGLBuffer>
getStrideSize() → number
getIsInstanced() → boolean
create(data) → void
Parameters
|
Name |
Type |
Description |
optional |
data |
Nullable<FloatArray> |
|
update(data) → void
Parameters
|
Name |
Type |
Description |
|
data |
FloatArray |
|
updateDirectly(data, offset, vertexCount) → void
Parameters
|
Name |
Type |
Description |
|
data |
Float32Array |
|
|
offset |
number |
|
optional |
vertexCount |
number |
|
dispose() → void