public void DrawCircle(Vect pos, double angle, double radius, DebugColor outlineColor, DebugColor fillColor) { var center = new Vector2((float)pos.X, (float)pos.Y); primitiveBatch.DrawCircle(center, (float)radius, new Color(fillColor.Red, fillColor.Green, fillColor.Blue), new Color(outlineColor.Red, outlineColor.Green, outlineColor.Blue) ); }
/// <summary> /// This is called when the game should draw itself. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> protected override void Draw(GameTime gameTime) { graphics.GraphicsDevice.Clear(backgroundColor); primitiveBatch.Begin(ref projection, ref view); primitiveBatch.DrawCircle(new Vector2((float)cursorBody.Position.X, (float)cursorBody.Position.Y), 5, Color.BlueViolet, Color.WhiteSmoke); demo[currentDemo].Draw(gameTime, debugDraw); primitiveBatch.End(); base.Draw(gameTime); }