vertex_texcoord

Set UV coordinates for the texture being used for the vertex.

语法:

vertex_texcoord(buffer, u, v);


参数 描述
buffer The buffer to write the information to.
u The first texture coordinate to use (0 - 1).
v The second texture coordinate to use (0 - 1).


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


描述

This function will set the texture coordinates to use for the vertex currently being defined for the custom primitive. You supply the buffer to write the data into as well as the UV position within the texture to use.


例如:

vertex_texcoord(buff, 0, 0);

The above code will set the UV values of the vertex being defined.


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