Module: vertex_buffer

Defines the module that supports the loading and using of the buffer that contains vertex positions of a square onto the gl context

Found in Chapter 2, page 31 of the textbook

Example: 2.3 Elementary Drawing
Source:

Methods

(inner) cleanUp()

Delete the various buffers and clear references to them
Source:

(inner) get() → {WebGLBuffer}

Returns a reference to the vertex positions for the square in the gl context
Source:
Returns:
the vertex buffer
Type
WebGLBuffer

(inner) getLineVertexBuffer() → {WebGlBuffer}

Returns the reference to the line vertex buffer to support physics engine debugging
Source:
Returns:
the line vertex buffer
Type
WebGlBuffer

(inner) getTexCoord() → {WebGlBuffer}

Returns the reference to the texture coordinates for the square vertices in the gl context
Source:
Returns:
the texture coordinate buffer
Type
WebGlBuffer

(inner) init()

Initializes and bind the various buffers
Source: