FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
#include <atlasbook.h>
Public Member Functions | |
AtlasPage (uint32_t width, uint32_t height, uint32_t pixelSize, uint32_t page) | |
AtlasBlock * | getBlock (uint32_t width, uint32_t height) |
void | shrink (bool pot) |
uint32_t | getWidth () const |
uint32_t | getHeight () const |
Private Types | |
typedef std::vector< AtlasBlock > | Blocks |
Private Member Functions | |
AtlasBlock const * | intersects (AtlasBlock const *block) const |
Private Attributes | |
uint32_t | width |
uint32_t | height |
uint32_t | pixelSize |
uint32_t | page |
int32_t | freePixels |
Blocks | blocks |
Definition at line 84 of file atlasbook.h.
|
private |
Definition at line 111 of file atlasbook.h.
|
inline |
Definition at line 86 of file atlasbook.h.
AtlasBlock * FIFE::AtlasPage::getBlock | ( | uint32_t | width, |
uint32_t | height | ||
) |
Definition at line 53 of file atlasbook.cpp.
References FIFE::AtlasBlock::AtlasBlock(), FIFE::AtlasBlock::bottom, FIFE::AtlasBlock::getHeight(), FIFE::AtlasBlock::getWidth(), FIFE::AtlasBlock::intersects(), FIFE::AtlasBlock::left, FIFE::AtlasBlock::page, FIFE::AtlasBlock::right, and FIFE::AtlasBlock::top.
|
inline |
Definition at line 99 of file atlasbook.h.
References FIFE::AtlasBlock::intersects().
|
inline |
Definition at line 95 of file atlasbook.h.
|
private |
Definition at line 188 of file atlasbook.cpp.
References FIFE::AtlasBlock::intersects(), and FIFE::AtlasBlock::isTrivial().
void FIFE::AtlasPage::shrink | ( | bool | pot | ) |
Definition at line 155 of file atlasbook.cpp.
References FIFE::AtlasBlock::getHeight(), FIFE::AtlasBlock::getWidth(), FIFE::AtlasBlock::left, FIFE::AtlasBlock::merge(), and FIFE::AtlasBlock::top.
|
private |
Definition at line 112 of file atlasbook.h.
|
private |
Definition at line 109 of file atlasbook.h.
|
private |
Definition at line 106 of file atlasbook.h.
|
private |
Definition at line 108 of file atlasbook.h.
|
private |
Definition at line 107 of file atlasbook.h.
|
private |
Definition at line 106 of file atlasbook.h.