C# Class RTSEngine.Graphics.VoxMap

Inheritance: IDisposable
显示文件 Open project: RegrowthStudios/VoxelRTS Class Usage Examples

Public Properties

Property Type Description
FogOfWar float[]
FogOfWarTexture Microsoft.Xna.Framework.Graphics.Texture2D

Public Methods

Method Description
ApplyFOW ( ) : void
Build ( GraphicsDeviceManager gdm, Microsoft.Xna.Framework.Content.ContentManager cm, VoxMapConfig vc ) : void
Dispose ( ) : void
Draw ( GraphicsDevice g, Matrix mView, Matrix mProj ) : void
SetFOW ( int x, int y, float f ) : void
Update ( ) : void
VoxMap ( RTSRenderer renderer, int fw, int fh ) : System

Method Details

ApplyFOW() public method

public ApplyFOW ( ) : void
return void

Build() public method

public Build ( GraphicsDeviceManager gdm, Microsoft.Xna.Framework.Content.ContentManager cm, VoxMapConfig vc ) : void
gdm GraphicsDeviceManager
cm Microsoft.Xna.Framework.Content.ContentManager
vc VoxMapConfig
return void

Dispose() public method

public Dispose ( ) : void
return void

Draw() public method

public Draw ( GraphicsDevice g, Matrix mView, Matrix mProj ) : void
g GraphicsDevice
mView Matrix
mProj Matrix
return void

SetFOW() public method

public SetFOW ( int x, int y, float f ) : void
x int
y int
f float
return void

Update() public method

public Update ( ) : void
return void

VoxMap() public method

public VoxMap ( RTSRenderer renderer, int fw, int fh ) : System
renderer RTSRenderer
fw int
fh int
return System

Property Details

FogOfWar public_oe property

public float[] FogOfWar
return float[]

FogOfWarTexture public_oe property

public Texture2D,Microsoft.Xna.Framework.Graphics FogOfWarTexture
return Microsoft.Xna.Framework.Graphics.Texture2D