VertexBuffer
Index
Constructors
constructor
Parameters
options: VertexBufferOptions
Returns VertexBuffer
Properties
publicreadonlybuffer
Access to the webgl buffer handle
publicreadonlybufferData
Access to the raw data of the vertex buffer
publictype
If the vertices never change switching 'static' can be more efficient on the gpu
Default is 'dynamic'
Methods
bind
Bind this vertex buffer
Returns void
dispose
Returns void
unbind
Returns void
upload
Upload vertex buffer geometry to the GPU
Parameters
optionalcount: number
Returns void
Helper around vertex buffer to simplify creating and uploading geometry
Under the hood uses Float32Array