C# Class Drought.World.Terrain

Exibir arquivo Open project: kiniry-teaching/UCD Class Usage Examples

Public Properties

Property Type Description
BAD_POSITION Vector3
counter double
lightDirection Vector3
oldTime double

Public Methods

Method Description
Terrain ( GraphicsDevice device, Microsoft.Xna.Framework.Content.ContentManager content, LevelInfo levelInfo, Camera camera ) : System
finaliseBuffers ( ) : void
initialise ( ) : void
loadContent ( ) : void
projectToScreen ( Vector3 worldPoint ) : Vector3
projectToTerrain ( int mouseX, int mouseY ) : Vector3
render ( Sun sun ) : void

Private Methods

Method Description
setUpIndices ( ) : void
setUpNormals ( ) : void
setUpVertices ( ) : void

Method Details

Terrain() public method

public Terrain ( GraphicsDevice device, Microsoft.Xna.Framework.Content.ContentManager content, LevelInfo levelInfo, Camera camera ) : System
device GraphicsDevice
content Microsoft.Xna.Framework.Content.ContentManager
levelInfo LevelInfo
camera Camera
return System

finaliseBuffers() public method

public finaliseBuffers ( ) : void
return void

initialise() public method

public initialise ( ) : void
return void

loadContent() public method

public loadContent ( ) : void
return void

projectToScreen() public method

public projectToScreen ( Vector3 worldPoint ) : Vector3
worldPoint Vector3
return Vector3

projectToTerrain() public method

public projectToTerrain ( int mouseX, int mouseY ) : Vector3
mouseX int
mouseY int
return Vector3

render() public method

public render ( Sun sun ) : void
sun Sun
return void

Property Details

BAD_POSITION public_oe static_oe property

public static Vector3 BAD_POSITION
return Vector3

counter public_oe property

public double counter
return double

lightDirection public_oe property

public Vector3 lightDirection
return Vector3

oldTime public_oe property

public double oldTime
return double