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(
	float x1,
	float y1,
	float z1,
	float x2,
	float y2,
	float z2,
	bool fill
)

Parameters

x1
Type: System..::.Single
The X coordinate of the upper left corner.
y1
Type: System..::.Single
The Y coordinate of the upper left corner.
z1
Type: System..::.Single
The Z coordinate of the upper left corner.
x2
Type: System..::.Single
The X coordinate of the lower right corner.
y2
Type: System..::.Single
The Y coordinate of the lower right corner.
z2
Type: System..::.Single
The Z coordinate of the lower right corner.
fill
Type: System..::.Boolean
Indicates whether the object is filled.

Return Value

Returns the created rectangle.

See Also