C# Class EzGame.Perspective.Planar.Batch

Exibir arquivo Open project: CodeTreeCommunity/Shooter2D Class Usage Examples

Public Properties

Property Type Description
Begun bool

Public Methods

Method Description
Backup ( SpriteSortMode SortMode = SpriteSortMode.Deferred, BlendState BlendState = null, SamplerState SamplerState = null, DepthStencilState DepthStencilState = null, RasterizerState RasterizerState = null, Effect Effect = null, Matrix Matrix = null ) : void
Batch ( GraphicsDevice GraphicsDevice ) : Microsoft.Xna.Framework
Begin ( Matrix Matrix, bool Backup = false ) : void

Begin the SpriteBatch

Begin ( SpriteSortMode SortMode, BlendState BlendState, Matrix Matrix, bool Backup = false ) : void

Begin the SpriteBatch

Begin ( SpriteSortMode SortMode = SpriteSortMode.Deferred, BlendState BlendState = null, SamplerState SamplerState = null, DepthStencilState DepthStencilState = null, RasterizerState RasterizerState = null, Effect Effect = null, Matrix Matrix = null, bool Backup = false ) : void

Begin the SpriteBatch

Begin ( SpriteSortMode SortMode, Matrix Matrix, bool Backup = false ) : void

Begin the SpriteBatch

Draw ( Microsoft.Xna.Framework.Graphics.Texture2D Texture, Rectangle Bounds ) : void
Draw ( Microsoft.Xna.Framework.Graphics.Texture2D Texture, Rectangle Bounds, Microsoft.Xna.Framework.Color Color ) : void
Draw ( Microsoft.Xna.Framework.Graphics.Texture2D Texture, Rectangle Bounds, Rectangle Source, Microsoft.Xna.Framework.Color Color, float Angle, Origin Origin, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Draw ( Microsoft.Xna.Framework.Graphics.Texture2D Texture, Vector2 Position, Rectangle Source, Microsoft.Xna.Framework.Color Color, float Angle, Origin Origin, Vector2 Scale, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Draw ( Microsoft.Xna.Framework.Graphics.Texture2D Texture, Vector2 Position, Rectangle Source, Microsoft.Xna.Framework.Color Color, float Angle, Origin Origin, float Scale, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
DrawRectangle ( Rectangle Bounds, Microsoft.Xna.Framework.Color Fill = null, Microsoft.Xna.Framework.Color Stroke = null, float Angle, int Size = 1, float Layer ) : void
DrawString ( string String, SpriteFont Font, Vector2 Position, Origin Origin, Microsoft.Xna.Framework.Color Fore, Microsoft.Xna.Framework.Color Back = null, float Angle, float Scale = 1, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
End ( ) : void
EndAll ( ) : void
Restore ( ) : void

Method Details

Backup() public method

public Backup ( SpriteSortMode SortMode = SpriteSortMode.Deferred, BlendState BlendState = null, SamplerState SamplerState = null, DepthStencilState DepthStencilState = null, RasterizerState RasterizerState = null, Effect Effect = null, Matrix Matrix = null ) : void
SortMode SpriteSortMode
BlendState Microsoft.Xna.Framework.Graphics.BlendState
SamplerState Microsoft.Xna.Framework.Graphics.SamplerState
DepthStencilState Microsoft.Xna.Framework.Graphics.DepthStencilState
RasterizerState Microsoft.Xna.Framework.Graphics.RasterizerState
Effect Microsoft.Xna.Framework.Graphics.Effect
Matrix Microsoft.Xna.Framework.Matrix
return void

Batch() public method

public Batch ( GraphicsDevice GraphicsDevice ) : Microsoft.Xna.Framework
GraphicsDevice GraphicsDevice
return Microsoft.Xna.Framework

Begin() public method

Begin the SpriteBatch
public Begin ( Matrix Matrix, bool Backup = false ) : void
Matrix Microsoft.Xna.Framework.Matrix Self-explanatory.
Backup bool
return void

Begin() public method

Begin the SpriteBatch
public Begin ( SpriteSortMode SortMode, BlendState BlendState, Matrix Matrix, bool Backup = false ) : void
SortMode SpriteSortMode Self-explanatory.
BlendState Microsoft.Xna.Framework.Graphics.BlendState Self-explanatory.
Matrix Microsoft.Xna.Framework.Matrix Self-explanatory.
Backup bool
return void

Begin() public method

Begin the SpriteBatch
public Begin ( SpriteSortMode SortMode = SpriteSortMode.Deferred, BlendState BlendState = null, SamplerState SamplerState = null, DepthStencilState DepthStencilState = null, RasterizerState RasterizerState = null, Effect Effect = null, Matrix Matrix = null, bool Backup = false ) : void
SortMode SpriteSortMode Self-explanatory.
BlendState Microsoft.Xna.Framework.Graphics.BlendState Self-explanatory.
SamplerState Microsoft.Xna.Framework.Graphics.SamplerState Self-explanatory.
DepthStencilState Microsoft.Xna.Framework.Graphics.DepthStencilState Self-explanatory.
RasterizerState Microsoft.Xna.Framework.Graphics.RasterizerState Self-explanatory.
Effect Microsoft.Xna.Framework.Graphics.Effect Self-explanatory.
Matrix Microsoft.Xna.Framework.Matrix Self-explanatory.
Backup bool
return void

Begin() public method

Begin the SpriteBatch
public Begin ( SpriteSortMode SortMode, Matrix Matrix, bool Backup = false ) : void
SortMode SpriteSortMode Self-explanatory.
Matrix Microsoft.Xna.Framework.Matrix Self-explanatory.
Backup bool
return void

Draw() public method

public Draw ( Microsoft.Xna.Framework.Graphics.Texture2D Texture, Rectangle Bounds ) : void
Texture Microsoft.Xna.Framework.Graphics.Texture2D
Bounds Microsoft.Xna.Framework.Rectangle
return void

Draw() public method

public Draw ( Microsoft.Xna.Framework.Graphics.Texture2D Texture, Rectangle Bounds, Microsoft.Xna.Framework.Color Color ) : void
Texture Microsoft.Xna.Framework.Graphics.Texture2D
Bounds Microsoft.Xna.Framework.Rectangle
Color Microsoft.Xna.Framework.Color
return void

Draw() public method

public Draw ( Microsoft.Xna.Framework.Graphics.Texture2D Texture, Rectangle Bounds, Rectangle Source, Microsoft.Xna.Framework.Color Color, float Angle, Origin Origin, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Texture Microsoft.Xna.Framework.Graphics.Texture2D
Bounds Microsoft.Xna.Framework.Rectangle
Source Microsoft.Xna.Framework.Rectangle
Color Microsoft.Xna.Framework.Color
Angle float
Origin Origin
Effect SpriteEffects
Layer float
return void

Draw() public method

public Draw ( Microsoft.Xna.Framework.Graphics.Texture2D Texture, Vector2 Position, Rectangle Source, Microsoft.Xna.Framework.Color Color, float Angle, Origin Origin, Vector2 Scale, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Texture Microsoft.Xna.Framework.Graphics.Texture2D
Position Microsoft.Xna.Framework.Vector2
Source Microsoft.Xna.Framework.Rectangle
Color Microsoft.Xna.Framework.Color
Angle float
Origin Origin
Scale Microsoft.Xna.Framework.Vector2
Effect SpriteEffects
Layer float
return void

Draw() public method

public Draw ( Microsoft.Xna.Framework.Graphics.Texture2D Texture, Vector2 Position, Rectangle Source, Microsoft.Xna.Framework.Color Color, float Angle, Origin Origin, float Scale, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Texture Microsoft.Xna.Framework.Graphics.Texture2D
Position Microsoft.Xna.Framework.Vector2
Source Microsoft.Xna.Framework.Rectangle
Color Microsoft.Xna.Framework.Color
Angle float
Origin Origin
Scale float
Effect SpriteEffects
Layer float
return void

DrawRectangle() public method

public DrawRectangle ( Rectangle Bounds, Microsoft.Xna.Framework.Color Fill = null, Microsoft.Xna.Framework.Color Stroke = null, float Angle, int Size = 1, float Layer ) : void
Bounds Microsoft.Xna.Framework.Rectangle
Fill Microsoft.Xna.Framework.Color
Stroke Microsoft.Xna.Framework.Color
Angle float
Size int
Layer float
return void

DrawString() public method

public DrawString ( string String, SpriteFont Font, Vector2 Position, Origin Origin, Microsoft.Xna.Framework.Color Fore, Microsoft.Xna.Framework.Color Back = null, float Angle, float Scale = 1, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
String string
Font Microsoft.Xna.Framework.Graphics.SpriteFont
Position Microsoft.Xna.Framework.Vector2
Origin Origin
Fore Microsoft.Xna.Framework.Color
Back Microsoft.Xna.Framework.Color
Angle float
Scale float
Effect SpriteEffects
Layer float
return void

End() public method

public End ( ) : void
return void

EndAll() public static method

public static EndAll ( ) : void
return void

Restore() public method

public Restore ( ) : void
return void

Property Details

Begun public_oe property

public bool Begun
return bool