Navigation
API > API/Runtime > API/Runtime/SlateCore
An interface to deal with a slate texture that can be updated dynamically
| Name | FSlateUpdatableTexture |
| Type | class |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Textures/SlateUpdatableTexture.h |
| Include Path | #include "Textures/SlateUpdatableTexture.h" |
Syntax
class FSlateUpdatableTexture
Derived Classes
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FSlateUpdatableTexture() |
Virtual destructor | Textures/SlateUpdatableTexture.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Cleanup() |
Deferred or Immediate cleanup of this data depending on what is required. | Textures/SlateUpdatableTexture.h | |
virtual FRenderResource * GetRenderResource() |
Gets the interface to the underlying render resource (may not always be used) | Textures/SlateUpdatableTexture.h | |
FSlateShaderResource * GetSlateResource() |
Gets the interface to the underlying platform independent texture | Textures/SlateUpdatableTexture.h | |
void ResizeTexture
(
uint32 Width, |
Resize the texture. | Textures/SlateUpdatableTexture.h | |
void UpdateTexture
(
const TArray< uint8 >& Bytes |
Updates the texture contents via a byte array. | Textures/SlateUpdatableTexture.h | |
void UpdateTextureThreadSafe
(
const TArray< uint8 >& Bytes |
Updates the texture contents via a byte array making a copy first for thread safety | Textures/SlateUpdatableTexture.h | |
void UpdateTextureThreadSafeRaw
(
uint32 Width, |
Update the texture from a raw byte buffer. | Textures/SlateUpdatableTexture.h | |
void UpdateTextureThreadSafeWithKeyedTextureHandle
(
void* TextureHandle, |
Update the texture from a shared texture handle. | Textures/SlateUpdatableTexture.h | |
void UpdateTextureThreadSafeWithTextureData
(
FSlateTextureData* TextureData |
Update the texture from a provided FSlateTextureData buffer, also transferring ownership of the texture | Textures/SlateUpdatableTexture.h |