예제 #1
0
 public static void Draw(this SpriteBatch spriteBatch, ITexture2D texture, Vector2 position, Color color, float scale)
 {
     texture.Draw(position, color, scale, spriteBatch);
 }
예제 #2
0
 public static void Draw(this SpriteBatch spriteBatch, ITexture2D texture, Rectangle destinationRectangle, Rectangle sourceRectangle, Color color)
 {
     texture.Draw(destinationRectangle, sourceRectangle, color, spriteBatch);
 }