FSlateDrawElement::MakeViewport

Creates a viewport element which is useful for rendering custom data in a texture into Slate

Choose your operating system:

Windows

macOS

Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Rendering/DrawElements.h

Include

#include "Rendering/DrawElements.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Rendering/DrawElements.cpp

Syntax

static void MakeViewport
(
    FSlateWindowElementList & ElementList,
    uint32 InLayer,
    const FPaintGeometry & PaintGeometry,
    TSharedPtr< const ISlateViewport > Viewport,
    ESlateDrawEffect InDrawEffects,
    const FLinearColor & InTint
)

Remarks

Creates a viewport element which is useful for rendering custom data in a texture into Slate

Parameters

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