UReporterBase::DrawTriangle

Helper to draw a triangle from normalized to screen space

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Debug/ReporterBase.h

Include

#include "Debug/ReporterBase.h"

Source

/Engine/Source/Runtime/Engine/Private/Debug/ReporterBase.cpp

Syntax

void DrawTriangle
(
    UCanvas * Canvas,
    const FVector2D & Vertex1,
    const FVector2D & Vertex2,
    const FVector2D & Vertex3,
    const FLinearColor & Color
)

Remarks

Helper to draw a triangle from normalized to screen space

Parameters

Parameter

Description

Canvas

The canvas to draw to

Vertex0

The position of the first vertex that makes up the triangle, in normalized coordinates

Vertex1

The position of the second vertex that makes up the triangle, in normalized coordinates

Vertex2

The position of the third vertex that makes up the triangle, in normalized coordinates

Color

The color to draw the triangle

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss