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

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

#include <GREM/resource/AtlasPacker.hpp>

Public Attributes

Offset2D offset
 The offset, in pixels, from the bottom left of the atlas where the new rectangle was inserted.
bool resized
 Whether the atlas needed to grow in order to accommodate the new rectangle or not.

Detailed Description

Result of the insertRectangle() function.

Member Data Documentation

◆ offset

Offset2D grem::resource::AtlasPacker::InsertRectangleResult::offset

The offset, in pixels, from the bottom left of the atlas where the new rectangle was inserted.

◆ resized

bool grem::resource::AtlasPacker::InsertRectangleResult::resized

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

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


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