Creates new terrain with default size.

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

Syntax

C#
public static XTerrain CreateTerrain(
	int width,
	int length,
	float height,
	Bitmap heightMap,
	Bitmap texture
)

Parameters

width
Type: System..::.Int32
Width of the terrain to be created.
length
Type: System..::.Int32
Length of the terrain to be created.
height
Type: System..::.Single
Maximal elevation of the terrain to be created.
heightMap
Type: System.Drawing..::.Bitmap
A Bitmap height map containing information about terrain elevation in every point. Black color means lowest elevation, white color means highest elevation.
texture
Type: System.Drawing..::.Bitmap
The texture Bitmap bitmap of the terrain.

Return Value

Returns newly created XTerrain terrain.

Exceptions

ExceptionCondition
System..::.ArgumentNullException heightMap is nullNothingnullptra null reference (Nothing in Visual Basic).

See Also