Navigation
API > API/Runtime > API/Runtime/Engine
Interface to expose the native backbuffer of a slate SWindow to FSceneViewport.
| Name | ISlateViewportProvider |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/Slate/SlateViewportProvider.h |
| Include Path | #include "Slate/SlateViewportProvider.h" |
Syntax
class ISlateViewportProvider
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~ISlateViewportProvider() |
Users of this type should never delete it. Lifetime is managed by the Slate RHI renderer. | Slate/SlateViewportProvider.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRHITexture * GetBackBufferResource() |
Returns the current RHI back buffer resource the renderer should draw to. | Slate/SlateViewportProvider.h | |
void SetCustomPresent
(
FRHICustomPresent* CustomPresent |
Hooks the platform RHI present call with the given custom present object. | Slate/SlateViewportProvider.h | |
void SetWindowCropSize
(
FIntRect& NewCropWindow |
Ability to crop viewport window size on supported platforms. | Slate/SlateViewportProvider.h |