Creates a new random terrain.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
C# |
---|
public static XTerrain CreateRandomTerrain( int width, int length, float height, int mountain, 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.
- mountain
- Type: System..::.Int32
Defines the mountainousness of the generated terrain, the bigger value the higher moutains.
- texture
- Type: System.Drawing..::.Bitmap
The texture Bitmap bitmap of the terrain.