FIFE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FIFE::AtlasPage Class Reference

#include <atlasbook.h>

+ Collaboration diagram for FIFE::AtlasPage:

Public Member Functions

 AtlasPage (uint32_t width, uint32_t height, uint32_t pixelSize, uint32_t page)
 
AtlasBlockgetBlock (uint32_t width, uint32_t height)
 
void shrink (bool pot)
 
uint32_t getWidth () const
 
uint32_t getHeight () const
 

Private Types

typedef std::vector< AtlasBlockBlocks
 

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
 

Detailed Description

Definition at line 83 of file atlasbook.h.

Member Typedef Documentation

typedef std::vector<AtlasBlock> FIFE::AtlasPage::Blocks
private

Definition at line 110 of file atlasbook.h.

Constructor & Destructor Documentation

FIFE::AtlasPage::AtlasPage ( uint32_t  width,
uint32_t  height,
uint32_t  pixelSize,
uint32_t  page 
)
inline

Definition at line 85 of file atlasbook.h.

Member Function Documentation

AtlasBlock * FIFE::AtlasPage::getBlock ( uint32_t  width,
uint32_t  height 
)
uint32_t FIFE::AtlasPage::getHeight ( ) const
inline

Definition at line 98 of file atlasbook.h.

References height.

uint32_t FIFE::AtlasPage::getWidth ( ) const
inline

Definition at line 94 of file atlasbook.h.

References width.

AtlasBlock const * FIFE::AtlasPage::intersects ( AtlasBlock const *  block) const
private

Definition at line 188 of file atlasbook.cpp.

References blocks, and FIFE::AtlasBlock::isTrivial().

Referenced by getBlock().

+ Here is the caller graph for this function:

Member Data Documentation

Blocks FIFE::AtlasPage::blocks
private

Definition at line 111 of file atlasbook.h.

Referenced by getBlock(), intersects(), and shrink().

int32_t FIFE::AtlasPage::freePixels
private

Definition at line 108 of file atlasbook.h.

Referenced by getBlock().

uint32_t FIFE::AtlasPage::height
private

Definition at line 105 of file atlasbook.h.

Referenced by getBlock(), getHeight(), and shrink().

uint32_t FIFE::AtlasPage::page
private

Definition at line 107 of file atlasbook.h.

Referenced by getBlock().

uint32_t FIFE::AtlasPage::pixelSize
private

Definition at line 106 of file atlasbook.h.

Referenced by getBlock().

uint32_t FIFE::AtlasPage::width
private

Definition at line 105 of file atlasbook.h.

Referenced by getBlock(), getWidth(), and shrink().


The documentation for this class was generated from the following files: