drawUIRectangle

GraphicsModuleInterface::drawUIRectangle

Draws a rectangle on the User Interface.

Declaration

virtual void drawUIRectangle(CoordinateType coordinateType, const Math::vec2& position, const Math::vec2& size, const Math::vec4& color) = 0;

Parameters

Name

Type

Description

coordinateType

CoordinateType

The coordinate type used by position and size.

position

const Math::vec2&

The position of the top-left corner of the rectangle.

size

const Math::vec2&

The size of the rectangle.

color

const Math::vec4&

The color and opacity of the rectangle.

Returns

None.