Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Textures
Inheritance Hierarchy
- FSlateTextureAtlas
- FSlateFontAtlas
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Textures/TextureAtlas.h |
| Include | #include "Textures/TextureAtlas.h" |
Syntax
class FSlateTextureAtlas
Remarks
Base class texture atlases in Slate
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< uint8 > | AtlasData | Actual texture data contained in the atlas | |
| FAtlasedTextureSlot * | AtlasEmptySlots | The list of atlas slots pointing to empty texture data in the atlas | |
| uint32 | AtlasHeight | Height of the atlas | |
| ESlateTextureAtlasThreadId | AtlasOwnerThread | The type of thread that owns this atlas - this is the only thread that can safely update it NOTE: We don't use the thread ID here, as the render thread can be recreated if it gets suspended and resumed, giving it a new ID | |
| FAtlasedTextureSlot * | AtlasUsedSlots | The list of atlas slots pointing to used texture data in the atlas | |
| uint32 | AtlasWidth | Width of the atlas | |
| bool | bNeedsUpdate | True if this texture needs to have its rendering resources updated | |
| bool | bUpdatesAfterInitialization | True if this texture can update after initialziation and we should preserve the atlas slots and cpu memory | |
| uint32 | BytesPerPixel | Bytes per pixel in the atlas | |
| ESlateTextureAtlasPaddingStyle | PaddingStyle | Padding style |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSlateTextureAtlas
(
uint32 InWidth, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| const FAtlasedTextureSlot * | AddTexture
(
uint32 TextureWidth, |
Adds a texture to the atlas | |
| void | Updates the texture used for rendering if needed | ||
| void | CopyDataIntoSlot
(
const FAtlasedTextureSlot* SlotToCopyTo, |
Copies texture data into the atlas at a given slot | |
| void | CopyRow
(
const FCopyRowData& CopyRowData |
Copies a single row from a source texture to a dest texture, respecting the padding. | |
| void | Clears atlas cpu data. It does not clear rendering data | ||
| const FAtlasedTextureSlot * | FindSlotForTexture
(
uint32 InWidth, |
Finds the optimal slot for a texture in the atlas | |
| FSlateShaderResource * | |||
| uint32 | GetHeight () |
||
| const FAtlasedTextureSlot * | GetSlotAtPosition
(
FIntPoint InPosition |
||
| uint32 | GetWidth () |
||
| void | Creates enough space for a single texture the width and height of the atlas | ||
| void | Marks the texture as dirty and needing its rendering resources updated | ||
| void | Releases rendering resources of this texture | ||
| void | ZeroRow
(
const FCopyRowData& CopyRowData |
Zeros out a row in the dest texture (used with PaddingStyle == PadWithZero). |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FCopyRowData |