C# Class CrisisAtSwissStation.PolygonDrawer

Inheritance: IDisposable
Mostra file Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Protected Properties

Property Type Description
decl Microsoft.Xna.Framework.Graphics.VertexDeclaration
effect Microsoft.Xna.Framework.Graphics.BasicEffect

Public Methods

Method Description
Dispose ( ) : void
DrawPolygons ( Vector2 position, float angle, float scale, Microsoft.Xna.Framework.Graphics.Texture2D texture, VertexPositionTexture vertices, BlendState blendMode ) : void
PolygonDrawer ( GraphicsDevice device, int width, int height ) : System

Method Details

Dispose() public method

public Dispose ( ) : void
return void

DrawPolygons() public method

public DrawPolygons ( Vector2 position, float angle, float scale, Microsoft.Xna.Framework.Graphics.Texture2D texture, VertexPositionTexture vertices, BlendState blendMode ) : void
position Vector2
angle float
scale float
texture Microsoft.Xna.Framework.Graphics.Texture2D
vertices Microsoft.Xna.Framework.Graphics.VertexPositionTexture
blendMode Microsoft.Xna.Framework.Graphics.BlendState
return void

PolygonDrawer() public method

public PolygonDrawer ( GraphicsDevice device, int width, int height ) : System
device GraphicsDevice
width int
height int
return System

Property Details

decl protected_oe property

protected VertexDeclaration,Microsoft.Xna.Framework.Graphics decl
return Microsoft.Xna.Framework.Graphics.VertexDeclaration

effect protected_oe property

protected BasicEffect,Microsoft.Xna.Framework.Graphics effect
return Microsoft.Xna.Framework.Graphics.BasicEffect