Пример #1
0
 /// <summary>
 /// Draws a gem in the appropriate color.
 /// </summary>
 public void Draw(GameTime gameTime, BitmapBatch batch)
 {
     batch.Add(new BitmapDrawCall(
                   texture, Position,
                   texture.Bounds(),
                   Color, Vector2.One, origin
                   ));
 }
 public static Color[] GetPixels(this Texture2D texture)
 {
     return(texture.GetPixels(texture.Bounds()));
 }