private void DrawEditingPoints(SDL2Renderer renderer) { // draw points if (FirstPoint != null) { // green renderer.SetRenderDrawColor(0, 255, 0, 255); renderer.RenderDrawPoint(FirstPoint.Item1, FirstPoint.Item2); } if (SecondPoint != null) { renderer.SetRenderDrawColor(0, 255, 0, 255); renderer.RenderDrawPoint(SecondPoint.Item1, SecondPoint.Item2); } }
private void DrawSignal(SDL2Renderer renderer) { if (EmergencyVehicle != null) { renderer.SetRenderDrawColor(0, 255, 0, 255); renderer.RenderDrawPoint((int)EmergencyVehicle.Position.x, (int)EmergencyVehicle.Position.y); SDL.SDL_Point[] signalRadius = Util.GenerateCircularPolygon(16, EmergencyVehicle.LastSignal.EmergencyRadius); Util.TranslatePoints(signalRadius, (int)EmergencyVehicle.Position.x, (int)EmergencyVehicle.Position.y); renderer.RenderDrawLines(signalRadius); } }