FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
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 115 of file atlasbook.h.

Member Typedef Documentation

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

Definition at line 141 of file atlasbook.h.

Constructor & Destructor Documentation

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

Definition at line 118 of file atlasbook.h.

Member Function Documentation

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

Definition at line 207 of file atlasbook.cpp.

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

Definition at line 197 of file atlasbook.cpp.

References FIFE::AtlasBlock::page.

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

+ Here is the caller graph for this function:

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

Definition at line 129 of file atlasbook.h.

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

Definition at line 220 of file atlasbook.cpp.

References FIFE::AtlasBlock::page.

Member Data Documentation

uint32_t FIFE::AtlasBook::pageHeight

Definition at line 138 of file atlasbook.h.

Pages FIFE::AtlasBook::pages

Definition at line 142 of file atlasbook.h.

uint32_t FIFE::AtlasBook::pageWidth

Definition at line 138 of file atlasbook.h.

uint32_t FIFE::AtlasBook::pixelSize

Definition at line 139 of file atlasbook.h.

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