Mojo graphics canvas drawtriangle
mojo:mojo.graphics.Canvas.DrawTriangle
Method DrawTriangle:Void( x:Float,y:Float,w:Float,angle:Float=0 )#
Method DrawTriangle:Void( x0:Float,y0:Float,x1:Float,y1:Float,x2:Float,y2:Float,color0:UInt,color1:UInt,color2:UInt )#
Method DrawTriangle:Void( x0:Float,y0:Float,x1:Float,y1:Float,x2:Float,y2:Float,color0:std.graphics.Color,color1:std.graphics.Color,color2:std.graphics.Color )#
Method DrawTriangle:Void( x0:Float,y0:Float,x1:Float,y1:Float,x2:Float,y2:Float,col0:UInt,col1:UInt,col2:UInt,u0:Float,v0:Float,u1:Float,v1:Float,u2:Float,v2:Float )#
Method DrawTriangle:Void( x0:Float,y0:Float,x1:Float,y1:Float,x2:Float,y2:Float,col0:UInt,col1:UInt,col2:UInt,srcImage:Image,shader:Shader,material:UniformBlock )#
Method DrawTriangle:Void( x0:Float,y0:Float,x1:Float,y1:Float,x2:Float,y2:Float,col0:UInt,col1:UInt,col2:UInt,u0:Float,v0:Float,u1:Float,v1:Float,u2:Float,v2:Float,srcImage:Image,shader:Shader,material:UniformBlock )#
Method DrawTriangle:Void( x0:Float,y0:Float,x1:Float,y1:Float,x2:Float,y2:Float,col0:UInt,col1:UInt,col2:UInt,u0:Float,v0:Float,u1:Float,v1:Float,u2:Float,v2:Float,srcImage:Image,shader:Shader )#
Method DrawTriangle:Void( x0:Float,y0:Float,x1:Float,y1:Float,x2:Float,y2:Float )#
Method DrawTriangle:Void( v0:std.geom.Vec2f,v1:std.geom.Vec2f,v2:std.geom.Vec2f )#
Draws a triangle.
Draws a triangle in the current Color using the current BlendMode.
The triangle vertex coordinates are also transform by the current Matrix.