GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::resource::ArrayAtlasPacker::InsertBoxResult Struct Reference

Result of the insertBox() function. More...

#include <GREM/resource/ArrayAtlasPacker.hpp>

Public Attributes

Offset3D offset
 The offset, in pixels and layers, from the bottom left of the first layer of the atlas where the new box was inserted.
bool resized
 Whether the atlas needed to grow in order to accommodate the new box or not.

Detailed Description

Result of the insertBox() function.

Member Data Documentation

◆ offset

Offset3D grem::resource::ArrayAtlasPacker::InsertBoxResult::offset

The offset, in pixels and layers, from the bottom left of the first layer of the atlas where the new box was inserted.

◆ resized

bool grem::resource::ArrayAtlasPacker::InsertBoxResult::resized

Whether the atlas needed to grow in order to accommodate the new box or not.

If true, the new required resolution and depth can be queried by calling getResolution() and getDepth().


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