FAtlasedTextureSlot

Structure holding information about where a texture is located in the atlas.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

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

Name Description

Public variable

uint32

 

Height

The height of the character

Public variable

uint8

 

Padding

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

Public variable

uint32

 

Width

The width of the character

Public variable

uint32

 

X

The X position of the character in the texture

Public variable

uint32

 

Y

The Y position of the character in the texture

Constructors

Name Description

Public function

FAtlasedTextureSlot

(
    uint32 InX,
    uint32 InY,
    uint32 InWidth,
    uint32 InHeight,
    uint8 InPadding
)