// --- // private void DrawRectangularGameObject(RectangularGameObject rectangularGameObject) { Vector2 topLeft = GetTransformedVector(rectangularGameObject.TopLeft); Vector2 bottomRight = GetTransformedVector(rectangularGameObject.BottomRight); BasicGraphics.DrawSquare(topLeft, bottomRight); }
private void DrawTexture(Texture texture, Vector2 bottomLeft, Vector2 bottomRight, Vector2 topRight, Vector2 topLeft) { Vector2 bL = GetTransformedVector(bottomLeft); Vector2 bR = GetTransformedVector(bottomRight); Vector2 tR = GetTransformedVector(topRight); Vector2 tL = GetTransformedVector(topLeft); BasicGraphics.DrawTexture(texture, bL, bR, tR, tL, _alpha); }
private void SetColor(BasicGraphics.Colors color) { BasicGraphics.SetColor(color, _alpha); }
private void DrawLine(Line line, float thickness) { BasicGraphics.DrawLine(GetTransformedVector(line.Point1), GetTransformedVector(line.Point2), thickness * _scale); }