Method | Description | |
---|---|---|
Draw ( ) : void | ||
MagicSprite ( |
Initializes a new instance of the MagicSprite class. It is possible to pass null for either relWidth or relHeight. In this case the respective other value is calculated in respect to the sprites aspect ratio to ensure a non-warped presentation.
|
Method | Description | |
---|---|---|
CheckOverride ( ) : void | ||
GetDrawingRec ( ) : void |
public MagicSprite ( |
||
sb | The SpriteBatch used to draw the sprite. | |
sprite | Microsoft.Xna.Framework.Graphics.Texture2D | The sprite texture. |
relPosition | Vector2 | The relative position. |
relWidth | float | The relative width. |
relHeight | float | The relative height. |
Xpan | float | The pan in X-direction. |
Ypan | float | The pan in Y-direction. |
return | System |