Closed kinosang closed 4 years ago
asked via Gitter.
Finally, I found some useful functions
public void Draw(
Texture2D texture,
Vector2 position,
Nullable<Rectangle> sourceRectangle,
Color color,
float rotation,
Vector2 origin,
Vector2 scale,
SpriteEffects effects,
float layerDepth
)
public void DrawSprite(
SpriteAnimationController animation,
Vector2 position,
Nullable<float> width,
Nullable<float> height,
Color color,
float rotation,
SpriteEffects effects,
float layerDepth
)
How can I do matrix transform for a sprite (bitmap), for e.g., alpha (fade-in, fade-out), spinning (like Sample4), etc