Creates a new rectangle.

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,
	Texture texture
)

Parameters

x1
Type: System..::.Single
The 1. X coordinate of the object.
y1
Type: System..::.Single
The 1. Y coordinate of the object.
z1
Type: System..::.Single
The 1. Z coordinate of the object.
x2
Type: System..::.Single
The 2. X coordinate of the object.
y2
Type: System..::.Single
The 2. Y coordinate of the object.
z2
Type: System..::.Single
The 2. Z coordinate of the object.
texture
Type: Texture
The Texture texture on the object surface.

Return Value

Returns the created rectangle.

See Also