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

#include <atlasbook.h>

+ Collaboration diagram for FIFE::AtlasBook:

Public Member Functions

 AtlasBook (uint32_t pageWidth, uint32_t pageHeight, uint32_t pixelSize=4)
 
AtlasBlockgetBlock (uint32_t width, uint32_t height)
 
void shrink (bool pot)
 
AtlasPagegetPage (size_t index)
 

Private Types

typedef std::vector< AtlasPagePages
 

Private Member Functions

AtlasPageextendCache (uint32_t minPageWidth, uint32_t minPageHeight)
 

Private Attributes

uint32_t pageWidth
 
uint32_t pageHeight
 
uint32_t pixelSize
 
Pages pages
 

Detailed Description

Definition at line 114 of file atlasbook.h.

Member Typedef Documentation

typedef std::vector<AtlasPage> FIFE::AtlasBook::Pages
private

Definition at line 140 of file atlasbook.h.

Constructor & Destructor Documentation

FIFE::AtlasBook::AtlasBook ( uint32_t  pageWidth,
uint32_t  pageHeight,
uint32_t  pixelSize = 4 
)
inline

Definition at line 117 of file atlasbook.h.

Member Function Documentation

AtlasPage * FIFE::AtlasBook::extendCache ( uint32_t  minPageWidth,
uint32_t  minPageHeight 
)
private

Definition at line 207 of file atlasbook.cpp.

References pageHeight, pages, pageWidth, and pixelSize.

Referenced by getBlock().

+ Here is the caller graph for this function:

AtlasBlock * FIFE::AtlasBook::getBlock ( uint32_t  width,
uint32_t  height 
)

Definition at line 197 of file atlasbook.cpp.

References extendCache(), FIFE::AtlasPage::getBlock(), and pages.

Referenced by FIFE::GuiImageLoader::load().

+ Here is the caller graph for this function:

AtlasPage& FIFE::AtlasBook::getPage ( size_t  index)
inline

Definition at line 128 of file atlasbook.h.

References pages.

void FIFE::AtlasBook::shrink ( bool  pot)

Definition at line 220 of file atlasbook.cpp.

References pages.

Member Data Documentation

uint32_t FIFE::AtlasBook::pageHeight
private

Definition at line 137 of file atlasbook.h.

Referenced by extendCache().

Pages FIFE::AtlasBook::pages
private

Definition at line 141 of file atlasbook.h.

Referenced by extendCache(), getBlock(), getPage(), and shrink().

uint32_t FIFE::AtlasBook::pageWidth
private

Definition at line 137 of file atlasbook.h.

Referenced by extendCache().

uint32_t FIFE::AtlasBook::pixelSize
private

Definition at line 138 of file atlasbook.h.

Referenced by extendCache().


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