vertex_position_3d

This function adds 3D position data to the vertex currently being defined for the custom primitive.

You supply the vertex buffer to write the data into as well as the x, y and z components of the vertex position.

 

Syntax:

vertex_position_3d(buffer, x, y, z);

ArgumentTypeDescription
bufferVertex BufferThe vertex buffer to write the information to.
xRealThe x position.
yRealThe y position.
zRealThe z position.

 

Returns:

N/A

 

Example:

vertex_position_3d(buff, x - 100, y - 125, 0);

The above code sets the position of the vertex being defined.