drawUILine

Script::drawUILine

Draws a line on the User Interface.

Declaration

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

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.