C# Class LiSPSMDemo.MainGame

ゲーム クラス。 原型は XNA Shadow Mapping サンプル。 ここでは、原型に対して VSM、LiSPSM のロジックをサンプルとして追加している。
Inheritance: Microsoft.Xna.Framework.Game
Mostra file Open project: willcraftia/TestXna Class Usage Examples

Public Methods

Method Description
MainGame ( ) : System

Protected Methods

Method Description
Draw ( GameTime gameTime ) : void
LoadContent ( ) : void
Update ( GameTime gameTime ) : void

Private Methods

Method Description
CreateLightViewProjectionMatrix ( ) : Matrix
CreateShadowMap ( ) : void
DrawModel ( Model model, bool createShadowMap ) : void
DrawOverlayText ( ) : void
DrawShadowMapToScreen ( ) : void
DrawWithShadowMap ( ) : void
HandleInput ( GameTime gameTime ) : void
UpdateCamera ( GameTime gameTime ) : void

Method Details

Draw() protected method

protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

LoadContent() protected method

protected LoadContent ( ) : void
return void

MainGame() public method

public MainGame ( ) : System
return System

Update() protected method

protected Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void