drawUILine

GraphicsModuleInterface::drawUILine

Draws a line on the User Interface.

Declaration

virtual void drawUILine(const Math::vec2& start, const Math::vec2& end, const Math::vec4& color) = 0;

Parameters

Name

Type

Description

start

const Math::vec2&

The starting point of the line.

end

const Math::vec2&

The ending point of the line.

color

const Math::vec4&

The color and opacity of the line.

Returns

None.

Notes

The start and end positions are in pixels, with (0, 0) being the top-left corner of the UI.