vertex_end

Finish building the primitive.

语法:

vertex_end(buffer);


参数 描述
buffer The buffer to end writing to.


返回: N/A(无返回值)


描述

With this function you end the building of the custom primitive. Once you call this command the primitive can be used in the vertex_submit function for use in a shader or you can freeze the buffer (making the vertex buffer used read-only and much faster) using vertex_freeze.


例如:

vertex_end(buff);

The above code will end the defining of a custom primitive.


上一页: Building Primitives
下一页: vertex_freeze
© Copyright YoYo Games Ltd. 2018 All Rights Reserved