vertex_texcoord

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

Syntax:

vertex_texcoord(buffer, u, v);


Argument Description
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).


Returns: N/A


Description

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.


Example:

vertex_texcoord(buff, 0, 0);

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


Back: Building Primitives
Next: vertex_float1
© Copyright YoYo Games Ltd. 2018 All Rights Reserved