public void Draw(Graphics.Graphics graphics) { graphics.GetSpriteBatch().Begin(); if (CurrentOverlay != null) CurrentOverlay.Draw(graphics); graphics.GetSpriteBatch().End(); }
/// <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); }