Click or drag to resize

VisualServerCanvasItemAddTriangleArray Method

Adds a triangle array to the CanvasItem's draw commands.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void CanvasItemAddTriangleArray(
	RID item,
	int[] indices,
	Vector2[] points,
	Color[] colors,
	Vector2[] uvs = null,
	int[] bones = null,
	float[] weights = null,
	RID texture = null,
	int count = -1,
	RID normalMap = null,
	bool antialiased = false,
	bool antialiasingUseIndices = false
)

Parameters

item
Type: GodotRID

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

indices
Type: SystemInt32

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

points
Type: GodotVector2

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

colors
Type: GodotColor

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

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

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

count (Optional)
Type: SystemInt32

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

normalMap (Optional)
Type: GodotRID

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

antialiased (Optional)
Type: SystemBoolean

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

antialiasingUseIndices (Optional)
Type: SystemBoolean

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

See Also