ScummVM
Glk::Pictures Class Reference

Pictures manager. More...

#include <picture.h>

Collaboration diagram for Glk::Pictures:

Public Member Functions

 Pictures ()
 Constructor. More...
 
 ~Pictures ()
 Destructor. More...
 
void clear ()
 Clear the picture list. More...
 
void increment ()
 Increments the count of the number of pictures in use. More...
 
void decrement ()
 Decrements the count of the number of pictures in use. More...
 
PictureEntrysearch (uint id)
 Searches for an existing picture entry. More...
 
void store (Picture *pic)
 Stores a picture in the store. More...
 
Pictureretrieve (uint id, bool scaled)
 Retrieves a picture from the store. More...
 
Pictureload (uint32 id)
 Load a given picture. More...
 
Picturescale (Picture *src, size_t sx, size_t sy)
 Rescale the passed picture to a new picture of a given size. More...
 

Private Member Functions

void storeOriginal (Picture *pic)
 Stores an original picture in the store. More...
 
void storeScaled (Picture *pic)
 Stores a scaled picture in the store. More...
 

Private Attributes

int _refCount
 
Common::Array< PictureEntry_store
 
Common::Array< uint_adaptivePics
 
Common::Array< byte_savedPalette
 

Detailed Description

Pictures manager.

Definition at line 89 of file picture.h.

Constructor & Destructor Documentation

◆ Pictures()

Glk::Pictures::Pictures ( )

Constructor.

Definition at line 33 of file picture.cpp.

◆ ~Pictures()

Glk::Pictures::~Pictures ( )
inline

Destructor.

Definition at line 114 of file picture.h.

Member Function Documentation

◆ clear()

void Glk::Pictures::clear ( )

Clear the picture list.

Definition at line 41 of file picture.cpp.

◆ decrement()

void Glk::Pictures::decrement ( )

Decrements the count of the number of pictures in use.

Definition at line 56 of file picture.cpp.

◆ increment()

void Glk::Pictures::increment ( )

Increments the count of the number of pictures in use.

Definition at line 52 of file picture.cpp.

◆ load()

Picture * Glk::Pictures::load ( uint32  id)

Load a given picture.

Definition at line 113 of file picture.cpp.

◆ retrieve()

Picture * Glk::Pictures::retrieve ( uint  id,
bool  scaled 
)

Retrieves a picture from the store.

Definition at line 100 of file picture.cpp.

◆ scale()

Picture * Glk::Pictures::scale ( Picture src,
size_t  sx,
size_t  sy 
)

Rescale the passed picture to a new picture of a given size.

Definition at line 207 of file picture.cpp.

◆ search()

PictureEntry * Glk::Pictures::search ( uint  id)

Searches for an existing picture entry.

Definition at line 61 of file picture.cpp.

◆ store()

void Glk::Pictures::store ( Picture pic)

Stores a picture in the store.

Definition at line 90 of file picture.cpp.

◆ storeOriginal()

void Glk::Pictures::storeOriginal ( Picture pic)
private

Stores an original picture in the store.

Definition at line 74 of file picture.cpp.

◆ storeScaled()

void Glk::Pictures::storeScaled ( Picture pic)
private

Stores a scaled picture in the store.

Definition at line 81 of file picture.cpp.

Member Data Documentation

◆ _adaptivePics

Common::Array<uint> Glk::Pictures::_adaptivePics
private

Definition at line 93 of file picture.h.

◆ _refCount

int Glk::Pictures::_refCount
private

Definition at line 91 of file picture.h.

◆ _savedPalette

Common::Array<byte> Glk::Pictures::_savedPalette
private

Definition at line 94 of file picture.h.

◆ _store

Common::Array<PictureEntry> Glk::Pictures::_store
private

Definition at line 92 of file picture.h.


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