Beispiel #1
0
 public static void DrawRectangle(this SpriteBatch batch, Rectangle rectangle, Color color)
 {
     ShapeRenderer.Get(batch.GraphicsDevice).DrawRectangle(batch, rectangle, color);
 }
Beispiel #2
0
 internal static ShapeRenderer Get(GraphicsDevice device) => _instance ?? (_instance = new ShapeRenderer(device));