mojo.graphics.Canvas.DrawPolys - nitrologic/monkey2 GitHub Wiki

mojo::mojo.graphics.mojo.graphics.Canvas.DrawPolys

Method DrawPolys:Void( order:monkey:monkey.types.Int,count:monkey:monkey.types.Int,vertices:monkey:monkey.types.Float[] )

Draws a sequence of polygons.

Draws a sequence of polygons using the current Color, BlendMode and Matrix.

Parameters
order order The type of polygon: 3=triangles, 4=quads, >4=n-gons.
count count The number of polygons.
vertices vertices Array of x/y vertex coordinate pairs.