vertex_format_add_texcoord

This function adds texture position data (u and v) as part of the new vertex format being created.

 

Syntax:

vertex_format_add_texcoord();

 

Returns:

N/A

 

Example:

vertex_format_begin();
vertex_format_add_texcoord();
vertex_format_add_position_3d();
my_format = vertex_format_end();

The above code creates a new vertex format with just texture and position values and then stores the format in the variable my_format.