FIFE  be64c707dea6b3250bd4355bf5c825d25920087d
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

◆ Pages

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

Definition at line 141 of file atlasbook.h.

Constructor & Destructor Documentation

◆ AtlasBook()

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

Definition at line 118 of file atlasbook.h.

Member Function Documentation

◆ extendCache()

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

Definition at line 207 of file atlasbook.cpp.

◆ getBlock()

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:

◆ getPage()

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

Definition at line 129 of file atlasbook.h.

◆ shrink()

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

Definition at line 220 of file atlasbook.cpp.

References FIFE::AtlasBlock::page.

Member Data Documentation

◆ pageHeight

uint32_t FIFE::AtlasBook::pageHeight
private

Definition at line 138 of file atlasbook.h.

◆ pages

Pages FIFE::AtlasBook::pages
private

Definition at line 142 of file atlasbook.h.

◆ pageWidth

uint32_t FIFE::AtlasBook::pageWidth
private

Definition at line 138 of file atlasbook.h.

◆ pixelSize

uint32_t FIFE::AtlasBook::pixelSize
private

Definition at line 139 of file atlasbook.h.


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