drawUIRectangle

GraphicsModuleInterface::drawUIRectangle

Draws a rectangle on the User Interface.

Declaration

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

Parameters

Name

Type

Description

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.

Notes

The position is in pixels, with (0, 0) being the top-left corner of the UI.

The size is in pixels.