| TLinkedListBase
|
Module |
|
Header |
/Engine/Source/Runtime/SlateCore/Public/Textures/TextureAtlas.h |
Include |
#include "Textures/TextureAtlas.h" |
struct FAtlasedTextureSlot : public TIntrusiveLinkedList< FAtlasedTextureSlot >
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
Name | Description | ||
---|---|---|---|
|
Height |
The height of the character |
|
|
Padding |
Uniform Padding. can only be zero or one. See ESlateTextureAtlasPaddingStyle. |
|
|
Width |
The width of the character |
|
|
X |
The X position of the character in the texture |
|
|
Y |
The Y position of the character in the texture |