vertex_create_buffer_ext

This function creates a new vertex buffer and sets its initial size in bytes.

This is a special grow buffer created by GameMaker which is pre-formatted for use when building primitives for use with shaders. You can specify an initial starting size for the buffer (in bytes) and it will return an index for the buffer which should then be used in all further calls to the buffer.

 

Syntax:

vertex_create_buffer_ext(size);

ArgumentTypeDescription
sizeRealThe initial size of the buffer (in bytes).

 

Returns:

Vertex Buffer

 

Example:

v_buff = vertex_create_buffer_ext(1024 * 1024);

The above code creates a new vertex buffer, initially 1MB in size, and store it in the variable v_buff.