Exemplo n.º 1
0
 public void Draw(AnimationCollection animationCollection, Vector2 position, Color color)
 {
     if (animationCollection.Length <= 0)
     {
         return;
     }
     Draw(animationCollection.GetCurrent(), position, color);
 }
Exemplo n.º 2
0
 public void Draw(AnimationCollection animationCollection, Rectangle destinationRectangle, Color color)
 {
     if (animationCollection.Length <= 0)
     {
         return;
     }
     Draw(animationCollection.GetCurrent(), destinationRectangle, color);
 }
Exemplo n.º 3
0
 public void Draw(AnimationCollection animationCollection, Vector2 position, Color color, float rotation,
                  Vector2 origin, Vector2 scale, SpriteEffects effects, float layerDepth)
 {
     if (animationCollection.Length <= 0)
     {
         return;
     }
     Draw(animationCollection.GetCurrent(), position, color, rotation, origin, scale, effects, layerDepth);
 }
Exemplo n.º 4
0
 public void Draw(AnimationCollection animationCollection, Rectangle destinationRectangle, Color color,
                  float rotation, Vector2 origin, SpriteEffects effects, float layerDepth)
 {
     if (animationCollection.Length <= 0)
     {
         return;
     }
     Draw(animationCollection.GetCurrent(), destinationRectangle, color, rotation, origin, effects, layerDepth);
 }
Exemplo n.º 5
0
 public Texture2D Current()
 {
     return(animations.GetCurrent().GetCurrentTexture());
 }