|
OpenEnroth 0259030
|
#include <AtlasLayout.h>
Public Member Functions | |
| AtlasLayout ()=default | |
| AtlasLayout (Sizei gridSize, Sizei cellSize) | |
| Recti | operator[] (size_t index) const |
| size_t | size () const |
| Recti | geometry () const |
Private Attributes | |
| Sizei | _gridSize |
| Sizei | _cellSize |
Describes the layout of a texture atlas as a grid of equally-sized cells.
This class is purely metadata - it doesn't hold any image data. Use it together with a texture to get source rectangles for individual cells.
|
default |
| gridSize | Number of columns and rows in the grid. |
| cellSize | Size of each cell in pixels. |
|
inline |
|
inline |
| index | Cell index in row-major order. |
|
inline |
|
private |
|
private |