Navigation
Unreal Engine C++ API Reference > Runtime > SlateCore > Textures
Inheritance Hierarchy
- TLinkedListBase
- TIntrusiveLinkedList
- FAtlasedTextureSlot
References
Module | SlateCore |
Header | /Engine/Source/Runtime/SlateCore/Public/Textures/TextureAtlas.h |
Include | #include "Textures/TextureAtlas.h" |
Syntax
struct FAtlasedTextureSlot : public TIntrusiveLinkedList< FAtlasedTextureSlot >
Remarks
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:
- AtlastEmptySlots: 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
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
uint32 | Height | The height of the character |
![]() |
uint8 | Padding | Uniform Padding. can only be zero or one. See ESlateTextureAtlasPaddingStyle. |
![]() |
uint32 | Width | The width of the character |
![]() |
uint32 | X | The X position of the character in the texture |
![]() |
uint32 | Y | The Y position of the character in the texture |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FAtlasedTextureSlot
(
uint32 InX, |