draw_vertex


语法:

draw_vertex(x, y)


参数 描述
x The x coordinate of the vertex.
y The y coordinate of the vertex.


返回:

N/A(无返回值)


描述

This function defines the position of a vertex for a primitive. The final look of the primitive will depend on the primitive type chosen to draw and the order with which you add the vertexes to it. See draw_primitive_begin for more information. To end and draw the primitive you must call draw_primitive_end.


例如:

draw_primitive_begin(pr_trianglelist);
draw_vertex(100, 100);
draw_vertex(100, 200);
draw_vertex(150, 150);
draw_primitive_end();

The above code will draw a simple triangle primitive.