Primitive Example

Draw event:

draw_primitive_begin(pr_linestrip)
draw_vertex_color(5,5,c_green,3)
draw_vertex_color(10,5,c_red,3)
draw_vertex_color(5,10,c_yellow,3)
draw_vertex_color(10,10,c_blue,3)
draw_primitive_end()

This draws three red vertexes in the top left corner.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License