vertex_create_buffer_ext

Create a vertex buffer of a given size.

语法:

vertex_create_buffer_ext(size);


参数 描述
大小 The initial size of the buffer (in bytes).


返回: 指针


描述

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 2 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.


例如:

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".


上一页: Vertex Formats
下一页: vertex_create_buffer_from_buffer
© Copyright YoYo Games Ltd. 2018 All Rights Reserved