FIFE
|
#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 83 of file atlasbook.h.
|
private |
Definition at line 110 of file atlasbook.h.
|
inline |
Definition at line 85 of file atlasbook.h.
AtlasBlock * FIFE::AtlasPage::getBlock | ( | uint32_t | width, |
uint32_t | height | ||
) |
Definition at line 53 of file atlasbook.cpp.
References blocks, FIFE::AtlasBlock::bottom, freePixels, FIFE::AtlasBlock::getHeight(), FIFE::AtlasBlock::getWidth(), height, intersects(), FIFE::AtlasBlock::left, FIFE::AtlasBlock::page, page, pixelSize, FIFE::AtlasBlock::right, FIFE::AtlasBlock::top, and width.
Referenced by FIFE::AtlasBook::getBlock().
|
inline |
Definition at line 98 of file atlasbook.h.
References height.
|
inline |
Definition at line 94 of file atlasbook.h.
References width.
|
private |
Definition at line 188 of file atlasbook.cpp.
References blocks, and FIFE::AtlasBlock::isTrivial().
Referenced by getBlock().
void FIFE::AtlasPage::shrink | ( | bool | pot | ) |
Definition at line 155 of file atlasbook.cpp.
References blocks, FIFE::AtlasBlock::getHeight(), FIFE::AtlasBlock::getWidth(), height, FIFE::AtlasBlock::left, FIFE::AtlasBlock::merge(), FIFE::AtlasBlock::top, and width.
|
private |
Definition at line 111 of file atlasbook.h.
Referenced by getBlock(), intersects(), and shrink().
|
private |
Definition at line 108 of file atlasbook.h.
Referenced by getBlock().
|
private |
Definition at line 105 of file atlasbook.h.
Referenced by getBlock(), getHeight(), and shrink().
|
private |
Definition at line 107 of file atlasbook.h.
Referenced by getBlock().
|
private |
Definition at line 106 of file atlasbook.h.
Referenced by getBlock().
|
private |
Definition at line 105 of file atlasbook.h.
Referenced by getBlock(), getWidth(), and shrink().