Пример #1
0
 public void Draw(Graphics.Graphics graphics)
 {
     graphics.GetSpriteBatch().Begin();
     if (CurrentOverlay != null)
         CurrentOverlay.Draw(graphics);
     graphics.GetSpriteBatch().End();
 }
Пример #2
0
 /// <summary>
 /// Purely optional method for auto-magically drawing the mouse cursor.
 /// </summary>
 /// <param name="graphics"></param>
 public void DrawCursor(Graphics.Graphics graphics)
 {
     var destinationRect = new Rectangle(Minecraft2D.InputHelper.MousePosition.ToPoint(),
         new Point(32, 32));
     graphics.GetSpriteBatch().Draw(graphics.GetTexture2DByName("cursor"), destinationRect, Color.White);
 }