nw::demo::GraphicsDrawing::DrawRectangle Member Function

Syntax

void DrawRectangle(
     const math::VEC2 & pos,
     const math::VEC2 & size,
     ut::Color8 color
);

Arguments

Name Description
in pos Coordinates of the upper left edge.
in size Rectangle size.
in color The color.

Return Values

None.

Description

Renders a line in the shape of a rectangle. The CPU generates the vertices without using a line shader.


CONFIDENTIAL