Свойство | Type | Description | |
---|---|---|---|
DetailDistance | float | ||
DetailTexture | Microsoft.Xna.Framework.Graphics.Texture2D | ||
DetailTextureTiling | float | ||
RTexture | Microsoft.Xna.Framework.Graphics.Texture2D |
Méthode | 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 ( |
Méthode | Description | |
---|---|---|
createIndices ( ) : void | ||
createVertices ( ) : void | ||
genNormals ( ) : void | ||
getHeights ( ) : void |
public Draw ( |
||
gameTime | The elapsed game time. | |
Résultat | void |
public GetHeightAtPosition ( float X, float Z ) : float | ||
X | float | |
Z | float | |
Résultat | float |
public GetHeightAtPosition ( float X, float Z, float &Steepness ) : float | ||
X | float | |
Z | float | |
Steepness | float | |
Résultat | float |
public SetClipPlane ( Vector4 Plane ) : void | ||
Plane | Vector4 | |
Résultat | void |
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 | |
Résultat | System |
public Update ( |
||
gameTime | ||
Résultat | void |
public Texture2D,Microsoft.Xna.Framework.Graphics DetailTexture | ||
Résultat | Microsoft.Xna.Framework.Graphics.Texture2D |