UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FAtlasedTextureSlot Struct Reference

#include <TextureAtlas.h>

+ Inheritance diagram for FAtlasedTextureSlot:

Public Member Functions

 FAtlasedTextureSlot (uint32 InX, uint32 InY, uint32 InWidth, uint32 InHeight, uint8 InPadding)
 
- Public Member Functions inherited from TIntrusiveLinkedList< FAtlasedTextureSlot >
 TIntrusiveLinkedList ()
 
- Public Member Functions inherited from TLinkedListBase< ContainerType, ElementType, IteratorType >
 TLinkedListBase ()
 
void Unlink ()
 
void LinkBefore (ContainerType *Before)
 
void LinkAfter (ContainerType *After)
 
void LinkReplace (ContainerType *Replace)
 
void LinkHead (ContainerType *&Head)
 
UE_FORCEINLINE_HINT bool IsLinked ()
 
UE_FORCEINLINE_HINT ContainerType ** GetPrevLink () const
 
UE_FORCEINLINE_HINT ContainerType * GetNextLink () const
 
UE_FORCEINLINE_HINT ContainerType * Next ()
 

Public Attributes

uint32 X
 
uint32 Y
 
uint32 Width
 
uint32 Height
 
uint8 Padding
 

Additional Inherited Members

- Public Types inherited from TLinkedListBase< ContainerType, ElementType, IteratorType >
typedef IteratorType< ContainerType, ElementType > TIterator
 
typedef IteratorType< ContainerType, const ElementType > TConstIterator
 

Detailed Description

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

Constructor & Destructor Documentation

◆ FAtlasedTextureSlot()

FAtlasedTextureSlot::FAtlasedTextureSlot ( uint32  InX,
uint32  InY,
uint32  InWidth,
uint32  InHeight,
uint8  InPadding 
)
inline

Member Data Documentation

◆ Height

uint32 FAtlasedTextureSlot::Height

The height of the character

◆ Padding

uint8 FAtlasedTextureSlot::Padding

Uniform Padding. can only be zero or one. See ESlateTextureAtlasPaddingStyle.

◆ Width

uint32 FAtlasedTextureSlot::Width

The width of the character

◆ X

uint32 FAtlasedTextureSlot::X

The X position of the character in the texture

◆ Y

uint32 FAtlasedTextureSlot::Y

The Y position of the character in the texture


The documentation for this struct was generated from the following file: