vertex_create_buffer()

From ENIGMA
Revision as of 15:16, 8 June 2018 by RobertBColton (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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();