Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Rendering/DrawElements.h |
Include |
#include "Rendering/DrawElements.h" |
Source |
/Engine/Source/Runtime/SlateCore/Private/Rendering/DrawElements.cpp |
static void MakeLines
(
FSlateWindowElementList & ElementList,
uint32 InLayer,
const FPaintGeometry & PaintGeometry,
const TArray< FVector2D > & Points,
const TArray< FLinearColor > & PointColors,
ESlateDrawEffect InDrawEffects,
const FLinearColor & InTint,
bool bAntialias,
float Thickness
)
Creates a line defined by the provided points
Parameter |
Description |
---|---|
ElementList |
The list in which to add elements |
InLayer |
The layer to draw the element on |
PaintGeometry |
DrawSpace position and dimensions; see FPaintGeometry |
Points |
Points that make up the lines. The points are joined together. I.E if Points has A,B,C there the line is A-B-C. To draw non-joining line segments call MakeLines multiple times |
InDrawEffects |
Optional draw effects to apply |
InTint |
Color to tint the element |
bAntialias |
Should antialiasing be applied to the line? |
Thickness |
The thickness of the line |