Property | Type | Description | |
---|---|---|---|
DetailDistance | float | ||
DetailTexture | Microsoft.Xna.Framework.Graphics.Texture2D | ||
DetailTextureTiling | float | ||
RTexture | Microsoft.Xna.Framework.Graphics.Texture2D |
Method | Description | |
---|---|---|
Draw ( ) : void | ||
Draw ( |
This method renders the current state.
|
|
GetHeightAtPosition ( float X, float Z ) : float | ||
GetHeightAtPosition ( float X, float Z, float &Steepness ) : float | ||
SetClipPlane ( Vector4 Plane ) : void | ||
Terrain ( Game game, |
||
Update ( |
Method | Description | |
---|---|---|
createIndices ( ) : void | ||
createVertices ( ) : void | ||
genNormals ( ) : void | ||
getHeights ( ) : void |
public Draw ( |
||
gameTime | The elapsed game time. | |
return | void |
public GetHeightAtPosition ( float X, float Z ) : float | ||
X | float | |
Z | float | |
return | float |
public GetHeightAtPosition ( float X, float Z, float &Steepness ) : float | ||
X | float | |
Z | float | |
Steepness | float | |
return | float |
public Terrain ( Game game, |
||
game | Game | |
camera | ||
HeightMap | Microsoft.Xna.Framework.Graphics.Texture2D | |
CellSize | float | |
Height | float | |
BaseTexture | Microsoft.Xna.Framework.Graphics.Texture2D | |
TextureTiling | float | |
LightDirection | Vector3 | |
return | System |
public Update ( |
||
gameTime | ||
return | void |
public Texture2D,Microsoft.Xna.Framework.Graphics DetailTexture | ||
return | Microsoft.Xna.Framework.Graphics.Texture2D |