Click or drag to resize

VisualServerCanvasItemAddPolygon Method

Adds a polygon to the CanvasItem's draw commands.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void CanvasItemAddPolygon(
	RID item,
	Vector2[] points,
	Color[] colors,
	Vector2[] uvs = null,
	RID texture = null,
	RID normalMap = null,
	bool antialiased = false
)

Parameters

item
Type: GodotRID

[Missing <param name="item"/> documentation for "M:Godot.VisualServer.CanvasItemAddPolygon(Godot.RID,Godot.Vector2[],Godot.Color[],Godot.Vector2[],Godot.RID,Godot.RID,System.Boolean)"]

points
Type: GodotVector2

[Missing <param name="points"/> documentation for "M:Godot.VisualServer.CanvasItemAddPolygon(Godot.RID,Godot.Vector2[],Godot.Color[],Godot.Vector2[],Godot.RID,Godot.RID,System.Boolean)"]

colors
Type: GodotColor

[Missing <param name="colors"/> documentation for "M:Godot.VisualServer.CanvasItemAddPolygon(Godot.RID,Godot.Vector2[],Godot.Color[],Godot.Vector2[],Godot.RID,Godot.RID,System.Boolean)"]

uvs (Optional)
Type: GodotVector2
If the parameter is null, then the default value is new Vector2[] {}
texture (Optional)
Type: GodotRID

[Missing <param name="texture"/> documentation for "M:Godot.VisualServer.CanvasItemAddPolygon(Godot.RID,Godot.Vector2[],Godot.Color[],Godot.Vector2[],Godot.RID,Godot.RID,System.Boolean)"]

normalMap (Optional)
Type: GodotRID

[Missing <param name="normalMap"/> documentation for "M:Godot.VisualServer.CanvasItemAddPolygon(Godot.RID,Godot.Vector2[],Godot.Color[],Godot.Vector2[],Godot.RID,Godot.RID,System.Boolean)"]

antialiased (Optional)
Type: SystemBoolean

[Missing <param name="antialiased"/> documentation for "M:Godot.VisualServer.CanvasItemAddPolygon(Godot.RID,Godot.Vector2[],Godot.Color[],Godot.Vector2[],Godot.RID,Godot.RID,System.Boolean)"]

See Also