Creates a new polygon.

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

Syntax

C#
public XMeshSprite AddPolygon(
	float x,
	float y,
	float z,
	float length,
	int sides,
	Texture texture
)

Parameters

x
Type: System..::.Single
The X coordinate of the object.
y
Type: System..::.Single
The Y coordinate of the object.
z
Type: System..::.Single
The Z coordinate of the object.
length
Type: System..::.Single
Length of each side.
sides
Type: System..::.Int32
Count of sides.
texture
Type: Texture
Texture Texture on the object surface.

Return Value

Returns the newly created object.

See Also