nw::demo::GraphicsDrawing::DrawLine Member Function

Syntax

void DrawLine(
     const math::VEC2 & p1,
     const math::VEC2 & p2,
     ut::Color8 color
);

Arguments

Name Description
in p1 The line start point.
in p2 The line end point.
in color The color.

Return Values

None.

Description

Draws a line. The CPU creates a vertex without using a line shader.


CONFIDENTIAL