C# Class EzGame.Perspective.Planar.Textures

Show file Open project: CodeTreeCommunity/Shooter2D Class Usage Examples

Public Methods

Method Description
Contains ( string Path ) : bool
Draw ( string Path, Rectangle Bounds, Rectangle Source, Color Color, float Angle, Origin Origin, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Draw ( string Path, Vector2 Position, Rectangle Source, Color Color, float Angle, Origin Origin, Vector2 Scale, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Draw ( string Path, Vector2 Position, Rectangle Source, Color Color, float Angle, Origin Origin, float Scale, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Draw ( this Texture, Batch Batch, Rectangle Bounds, Rectangle Source, Color Color, float Angle, Origin Origin, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Draw ( this Texture, Batch Batch, Vector2 Position, Rectangle Source, Color Color, float Angle, Origin Origin, Vector2 Scale, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Draw ( this Texture, Batch Batch, Vector2 Position, Rectangle Source, Color Color, float Angle, Origin Origin, float Scale, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Draw ( this Texture, Rectangle Bounds, Rectangle Source, Color Color, float Angle, Origin Origin, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Draw ( this Texture, Vector2 Position, Rectangle Source, Color Color, float Angle, Origin Origin, Vector2 Scale, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Draw ( this Texture, Vector2 Position, Rectangle Source, Color Color, float Angle, Origin Origin, float Scale, SpriteEffects Effect = SpriteEffects.None, float Layer ) : void
Exists ( string Path ) : bool
Get ( string Path ) : Microsoft.Xna.Framework.Graphics.Texture2D
Load ( string Path, string rootDir = "" ) : void
LoadTextures ( string path ) : void

Load textures for a given path.

Pixel ( Color Color, bool Store = false ) : Texture2D

Get/Make a 1x1 Colored Pixel

Unload ( string Path ) : void

Private Methods

Method Description
DirSearch ( string directory ) : IEnumerable

Recursively search a directory for sub folders and files.

Method Details

Contains() public static method

public static Contains ( string Path ) : bool
Path string
return bool

Draw() public static method

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

Draw() public static method

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

Draw() public static method

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

Draw() public static method

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

Draw() public static method

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

Draw() public static method

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

Draw() public static method

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

Draw() public static method

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

Draw() public static method

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

Exists() public static method

public static Exists ( string Path ) : bool
Path string
return bool

Get() public static method

public static Get ( string Path ) : Microsoft.Xna.Framework.Graphics.Texture2D
Path string
return Microsoft.Xna.Framework.Graphics.Texture2D

Load() public static method

public static Load ( string Path, string rootDir = "" ) : void
Path string
rootDir string
return void

LoadTextures() public static method

Load textures for a given path.
public static LoadTextures ( string path ) : void
path string
return void

Pixel() public static method

Get/Make a 1x1 Colored Pixel
public static Pixel ( Color Color, bool Store = false ) : Texture2D
Color Color The Color of the Pixel.
Store bool Store the Pixel in Memory, for Regular usage?
return Texture2D

Unload() public static method

public static Unload ( string Path ) : void
Path string
return void