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 MakeViewport
(
FSlateWindowElementList & ElementList,
uint32 InLayer,
const FPaintGeometry & PaintGeometry,
TSharedPtr< const ISlateViewport > Viewport,
ESlateDrawEffect InDrawEffects,
const FLinearColor & InTint
)
Creates a viewport element which is useful for rendering custom data in a texture into Slate
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 |
Viewport |
Interface for drawing the viewport |
InScale |
Draw scale to apply to the entire element |
InDrawEffects |
Optional draw effects to apply |
InTint |
Color to tint the element |