CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::TextureAtlasLayout::Node Struct Reference

Represent a single node in the texture atlas binary tree. More...

Public Member Functions

constexpr Node ()=default
 
constexpr Node (const UInt32 x, const UInt32 y, const UInt32 width, const UInt32 height)
 

Public Attributes

UInt32 x = 0
 
UInt32 y = 0
 
UInt32 width = 0
 
UInt32 height = 0
 
UInt32 children [2] {std::numeric_limits<UInt32>::max(), std::numeric_limits<UInt32>::max()}
 
bool nodeFull = false
 

Detailed Description

Represent a single node in the texture atlas binary tree.

Constructor & Destructor Documentation

◆ Node() [1/2]

constexpr CeresEngine::TextureAtlasLayout::Node::Node ( )
constexprdefault

◆ Node() [2/2]

constexpr CeresEngine::TextureAtlasLayout::Node::Node ( const UInt32  x,
const UInt32  y,
const UInt32  width,
const UInt32  height 
)
inlineconstexpr

Member Data Documentation

◆ children

UInt32 CeresEngine::TextureAtlasLayout::Node::children[2] {std::numeric_limits<UInt32>::max(), std::numeric_limits<UInt32>::max()}

◆ height

UInt32 CeresEngine::TextureAtlasLayout::Node::height = 0

◆ nodeFull

bool CeresEngine::TextureAtlasLayout::Node::nodeFull = false

◆ width

UInt32 CeresEngine::TextureAtlasLayout::Node::width = 0

◆ x

UInt32 CeresEngine::TextureAtlasLayout::Node::x = 0

◆ y

UInt32 CeresEngine::TextureAtlasLayout::Node::y = 0

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