Create a vertex buffer of a given size.


GML Code Example


Argument Description
size The initial size of the buffer (in bytes).

Returns: Pointer


As with the function vertex_create_buffer, this function will create a new vertex buffer. This is a special grow buffer created by GameMaker: Studio 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 a "handle" (index) for the buffer which should then be used in all further calls to the buffer.


GML Code Example

v_buff = vertex_create_buffer_ext(1024 * 1024);

The above code will create a new vertex buffer, initially 1MB in size, and store its handle in the variable "v_buff".

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here