C# Class Dabrorius.MonoPunk.Image

Inheritance: Graphic
Show file Open project: dabrorius/MonoPunk

Public Properties

Property Type Description
Angle float
Flipped bool
OriginX float
OriginY float
Scale float
ScaleX float
ScaleY float

Protected Properties

Property Type Description
clipRect Microsoft.Xna.Framework.Rectangle

Public Methods

Method Description
Image ( Microsoft.Xna.Framework.Graphics.Texture2D source ) : System
Image ( Microsoft.Xna.Framework.Graphics.Texture2D source, Rectangle clipRect ) : System
Render ( SpriteBatch target, Vector2 point, Vector2 camera ) : void

Method Details

Image() public method

public Image ( Microsoft.Xna.Framework.Graphics.Texture2D source ) : System
source Microsoft.Xna.Framework.Graphics.Texture2D
return System

Image() public method

public Image ( Microsoft.Xna.Framework.Graphics.Texture2D source, Rectangle clipRect ) : System
source Microsoft.Xna.Framework.Graphics.Texture2D
clipRect Microsoft.Xna.Framework.Rectangle
return System

Render() public method

public Render ( SpriteBatch target, Vector2 point, Vector2 camera ) : void
target Microsoft.Xna.Framework.Graphics.SpriteBatch
point Vector2
camera Vector2
return void

Property Details

Angle public property

public float Angle
return float

Flipped public property

public bool Flipped
return bool

OriginX public property

public float OriginX
return float

OriginY public property

public float OriginY
return float

Scale public property

public float Scale
return float

ScaleX public property

public float ScaleX
return float

ScaleY public property

public float ScaleY
return float

clipRect protected property

protected Rectangle,Microsoft.Xna.Framework clipRect
return Microsoft.Xna.Framework.Rectangle