Example #1
0
        // --- //

        private void DrawRectangularGameObject(RectangularGameObject rectangularGameObject)
        {
            Vector2 topLeft     = GetTransformedVector(rectangularGameObject.TopLeft);
            Vector2 bottomRight = GetTransformedVector(rectangularGameObject.BottomRight);

            BasicGraphics.DrawSquare(topLeft, bottomRight);
        }
Example #2
0
        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);
        }
Example #3
0
 private void SetColor(BasicGraphics.Colors color)
 {
     BasicGraphics.SetColor(color, _alpha);
 }
Example #4
0
 private void DrawLine(Line line, float thickness)
 {
     BasicGraphics.DrawLine(GetTransformedVector(line.Point1), GetTransformedVector(line.Point2), thickness * _scale);
 }