Navigation
API > API/Runtime > API/Runtime/SlateCore
Structure holding information about where a texture is located in the atlas. Inherits a linked-list interface.
When a slot is occupied by texture data, the remaining space in the slot (if big enough) is split off into two new (smaller) slots, building a tree of texture rectangles which, instead of being stored as a tree, are flattened into two linked-lists:
- AtlasEmptySlots: A linked-list of empty slots ready for texture data - iterates in same order as a depth-first-search on a tree
- AtlasUsedSlots: An unordered linked-list of slots containing texture data
| Name | FAtlasedTextureSlot |
| Type | struct |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Textures/TextureAtlas.h |
| Include Path | #include "Textures/TextureAtlas.h" |
Syntax
struct FAtlasedTextureSlot : public TIntrusiveLinkedList< FAtlasedTextureSlot >
Inheritance Hierarchy
- TLinkedListBase → TIntrusiveLinkedList → FAtlasedTextureSlot
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FAtlasedTextureSlot
(
uint32 InX, |
Textures/TextureAtlas.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Height | uint32 | The height of the character | Textures/TextureAtlas.h | |
| Padding | uint8 | Uniform Padding. can only be zero or one. See ESlateTextureAtlasPaddingStyle. | Textures/TextureAtlas.h | |
| Width | uint32 | The width of the character | Textures/TextureAtlas.h | |
| X | uint32 | The X position of the character in the texture | Textures/TextureAtlas.h | |
| Y | uint32 | The Y position of the character in the texture | Textures/TextureAtlas.h |