C# Class Dabrorius.MonoPunk.Image

Inheritance: Graphic
Mostra 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_oe property

public float Angle
return float

Flipped public_oe property

public bool Flipped
return bool

OriginX public_oe property

public float OriginX
return float

OriginY public_oe property

public float OriginY
return float

Scale public_oe property

public float Scale
return float

ScaleX public_oe property

public float ScaleX
return float

ScaleY public_oe property

public float ScaleY
return float

clipRect protected_oe property

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