C# Class TerrainDemo.CDLOD.Terrain

Inheritance: IDisposable
Show file Open project: willcraftia/TestXna Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
Initialize ( IHeightMapSource heightMap ) : void
Select ( Selection selection ) : void
Terrain ( GraphicsDevice graphicsDevice, Settings settings ) : System

Private Methods

Method Description
Dispose ( bool disposing ) : void
InitializeHeightMapTexture ( IHeightMapSource heightMap ) : void

Initialize a height map texture. The height map texture is created with SurfaceFormat.Single.

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Initialize() public method

public Initialize ( IHeightMapSource heightMap ) : void
heightMap IHeightMapSource
return void

Select() public method

public Select ( Selection selection ) : void
selection Selection
return void

Terrain() public method

public Terrain ( GraphicsDevice graphicsDevice, Settings settings ) : System
graphicsDevice GraphicsDevice
settings Settings
return System