Navigation
API > API/Runtime > API/Runtime/SlateCore
Base class texture atlases in Slate
| Name | FSlateTextureAtlas |
| Type | class |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Textures/TextureAtlas.h |
| Include Path | #include "Textures/TextureAtlas.h" |
Syntax
class FSlateTextureAtlas
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSlateTextureAtlas
(
uint32 InWidth, |
Textures/TextureAtlas.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FSlateTextureAtlas() |
Textures/TextureAtlas.h |
Structs
| Name | Remarks |
|---|---|
| FCopyRowData |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FAtlasedTextureSlot * AddTexture
(
uint32 TextureWidth, |
Adds a texture to the atlas | Textures/TextureAtlas.h | |
void ConditionalUpdateTexture() |
Updates the texture used for rendering if needed | Textures/TextureAtlas.h | |
void EmptyAtlasData() |
Clears atlas cpu data. It does not clear rendering data | Textures/TextureAtlas.h | |
FSlateShaderResource * GetAtlasTexture() |
Textures/TextureAtlas.h | ||
uint32 GetHeight() |
Textures/TextureAtlas.h | ||
const FAtlasedTextureSlot * GetSlotAtPosition
(
FIntPoint InPosition |
Textures/TextureAtlas.h | ||
uint32 GetWidth() |
Textures/TextureAtlas.h | ||
void MarkTextureDirty() |
Marks the texture as dirty and needing its rendering resources updated | Textures/TextureAtlas.h | |
void ReleaseResources() |
Releases rendering resources of this texture | Textures/TextureAtlas.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddFreeSlot
(
uint32 InX, |
Adds a new slot to the free slot list. | Textures/TextureAtlas.h | |
void CopyDataIntoSlot
(
const FAtlasedTextureSlot* SlotToCopyTo, |
Copies texture data into the atlas at a given slot | Textures/TextureAtlas.h | |
void CopyRow
(
const FCopyRowData& CopyRowData |
Copies a single row from a source texture to a dest texture, respecting the padding. | Textures/TextureAtlas.h | |
const FAtlasedTextureSlot * FindSlotForTexture
(
uint32 InWidth, |
Finds the optimal slot for a texture in the atlas | Textures/TextureAtlas.h | |
void InitAtlasData() |
Creates enough space for a single texture the width and height of the atlas | Textures/TextureAtlas.h | |
void ZeroRow
(
const FCopyRowData& CopyRowData |
Zeros out a row in the dest texture (used with PaddingStyle == PadWithZero). | Textures/TextureAtlas.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static int32 GetFreeSlotSearchIndex
(
uint32 InWidth, |
Get the index to start looking for a free slot. | Textures/TextureAtlas.h |