vertex_create_buffer()

From ENIGMA

Jump to: navigation, search

Description

Creates a dynamically-allocated vertex buffer and returns its index. The vertex buffer created by this function can be reused multiple times, the previous vertex data is cleared as soon as vertex_begin is called, unless the buffer has been frozen with vertex_freeze.

Parameters

Parameter Description
none This function has no parameters.

Return Values

integer: Returns the index of the newly created vertex buffer.

Example Call

// demonstrates creating a vertex buffer
var buffer;
buffer = vertex_create_buffer();
Personal tools
Namespaces
Variants
Actions
Navigation
ENIGMA
Other
Toolbox