new VertexBuffer(gl, p)
The VertexBuffer class holds vertex data and provides methods to create vertex buffer objects in a given WebGL context; VVVV.Types.VertexBuffer objects mainly are used in (EX9.Geometry) nodes, and ultimately are parts of a VVVV.Types.Mesh object
Parameters:
Name | Type | Description |
---|---|---|
gl |
WebGlContext | the WebGL context |
p |
Array | an array of vertex positions |
- Source:
Members
-
length
-
total buffer length
- Source:
-
subBuffers
-
- Source:
-
vbo
-
the WebGL Vertex Buffer Object
- Source:
Methods
-
create()
-
Creates the VBO in the WebGL context and stores the vertex data
- Source:
-
setSubBuffer(u, s, d)
-
sets sub buffer data
Parameters:
Name Type Description u
String the buffer usage (e.g. POSITION, NORMAL, TEXCOORD0, TEXCOORD1, ...)
s
Integer the sub buffer size
d
Array the sub buffer data
- Source: