Property | Type | Description | |
---|---|---|---|
terrainHeight | int | ||
terrainWidth | int | ||
xScale | float | ||
zScale | float |
Property | Type | Description | |
---|---|---|---|
IndexBuffer | Buffer |
||
Indices | int[] | ||
VertexBuffer | |||
Vertices | VertexPositionNormalColor[] | ||
maxHeight | float | ||
minHeight | float |
Method | Description | |
---|---|---|
Destroy ( ) : void | ||
Destroy ( bool Async = false ) : void | ||
Draw ( SharpDX gametime ) : void |
Method | Description | |
---|---|---|
CreateBuffers ( ) : void | ||
GenerateGeometry ( ) : void | ||
GeneratePhysicsDescription ( ) : RigidBody | ||
GenerateTerrainData ( ) : ].float[ | ||
Terrain ( Project2Game game, System.Vector3 position, float xScale, float zScale ) : System | ||
colorFromHeight ( float heightval ) : Color |
Converts a height value between 0 and 1 into a color, based on a terrain height color scheme
|
Method | Description | |
---|---|---|
interpolateColors ( System.Vector3 colorA, System.Vector3 colorB, float distance ) : Color |
Returns a color at a certain amount between two given colors in the RGB space
|
protected abstract GeneratePhysicsDescription ( ) : RigidBody | ||
return | RigidBody |
protected abstract GenerateTerrainData ( ) : ].float[ | ||
return | ].float[ |
protected Terrain ( Project2Game game, System.Vector3 position, float xScale, float zScale ) : System | ||
game | Project2Game | |
position | System.Vector3 | |
xScale | float | |
zScale | float | |
return | System |
protected colorFromHeight ( float heightval ) : Color | ||
heightval | float | The height value between 0.0f and 1.0f to convert into a color |
return | Color |
protected VertexPositionNormalColor[] Vertices | ||
return | VertexPositionNormalColor[] |