Creates a new rectangle with the default color.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public XMaterialSprite AddRectangle(
	Vector3 a,
	Vector3 b,
	Vector3 c,
	Vector3 d,
	bool fill
)

Parameters

a
Type: Vector3
Coordinates of the vertex nr. 1.
b
Type: Vector3
Coordinates of the vertex nr. 2.
c
Type: Vector3
Coordinates of the vertex nr. 3.
d
Type: Vector3
Coordinates of the vertex nr. 4.
fill
Type: System..::.Boolean
Indicates whether the object is filled.

Return Value

Returns the created rectangle.

See Also