This function adds 2D 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 and y components of the vertex position.
vertex_position(buffer, x, y);
Argument | Type | Description |
---|---|---|
buffer | Vertex Buffer | The vertex buffer to write the information to. |
x | Real | The x position. |
y | Real | The y position. |
N/A
vertex_position(buff, x - 100, y - 125);
The above code sets the 2D position of the vertex being defined.