Class: VertexBuffer

VertexBuffer

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:
VVVV.js Copyright © 2012-2013 The contributors to the VVVV.js project.
Documentation generated by JSDoc 3.3.0-alpha4 on Thu May 08 2014 13:12:35 GMT+0200 (Mitteleuropäische Sommerzeit) using the DocStrap template.