C# Class TugOfBaby.RenderManager

显示文件 Open project: martinvium/ngj2012 Class Usage Examples

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch, List all ) : void
DrawLine ( SpriteBatch batch, float width, Color color, Vector2 point1, Vector2 point2 ) : void
GetSprite ( Texture name ) : Sprite
LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content, List all ) : void
RenderManager ( GraphicsDevice graphicsDevice ) : System
Update ( GameTime gametime, List all ) : void

Method Details

Draw() public method

public Draw ( SpriteBatch spriteBatch, List all ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
all List
return void

DrawLine() public method

public DrawLine ( SpriteBatch batch, float width, Color color, Vector2 point1, Vector2 point2 ) : void
batch Microsoft.Xna.Framework.Graphics.SpriteBatch
width float
color Color
point1 Vector2
point2 Vector2
return void

GetSprite() public method

public GetSprite ( Texture name ) : Sprite
name Microsoft.Xna.Framework.Graphics.Texture
return Sprite

LoadContent() public method

public LoadContent ( Microsoft.Xna.Framework.Content.ContentManager content, List all ) : void
content Microsoft.Xna.Framework.Content.ContentManager
all List
return void

RenderManager() public method

public RenderManager ( GraphicsDevice graphicsDevice ) : System
graphicsDevice GraphicsDevice
return System

Update() public method

public Update ( GameTime gametime, List all ) : void
gametime Microsoft.Xna.Framework.GameTime
all List
return void