PURE API 0.5
PR00F's Ultimate Rendering Engine full documentation
Loading...
Searching...
No Matches
PureImageManager::PureImageManagerImpl Class Reference

Detailed Description

Definition at line 24 of file PureImageManager.cpp.

Public Member Functions

virtual ~PureImageManagerImpl ()
 
PureImageloadBMP (const char *filename)
 This loads BMP files, handles the actual file operations, and creates the Image object.
 

Static Protected Attributes

static PureHwInfopHWInfo = PureHwInfo::get()
 We need some info on HW.
 

Private Member Functions

 PureImageManagerImpl (PureImageManager *parent)
 
 PureImageManagerImpl (const PureImageManagerImpl &)
 
PureImageManagerImploperator= (const PureImageManagerImpl &)
 
PureImageloadBMPfail (HANDLE f, PureImage *img, RGBQUAD *palette, const char *msg)
 Used by loadBMP() when an error occurs.
 
PureImagecreateFromFileFail (const char *msg)
 Used by createFromFile() when an error occurs.
 

Private Attributes

PureImageManager_pOwner
 The owner public object who creates this pimpl object.
 
TPureUInt nRunningCounter
 Always increased when creating a new Image instance.
 

Friends

class PureImageManager
 

Constructor & Destructor Documentation

◆ ~PureImageManagerImpl()

PureImageManager::PureImageManagerImpl::~PureImageManagerImpl ( )
virtual

Definition at line 61 of file PureImageManager.cpp.

◆ PureImageManagerImpl() [1/2]

PureImageManager::PureImageManagerImpl::PureImageManagerImpl ( PureImageManager * parent)
private
Parameters
parentPublic class instance owning this pimpl object.

Definition at line 166 of file PureImageManager.cpp.

◆ PureImageManagerImpl() [2/2]

PureImageManager::PureImageManagerImpl::PureImageManagerImpl ( const PureImageManagerImpl & )
private

Definition at line 175 of file PureImageManager.cpp.

Member Function Documentation

◆ createFromFileFail()

PureImage * PureImageManager::PureImageManagerImpl::createFromFileFail ( const char * msg)
private

Used by createFromFile() when an error occurs.

Returns
PGENULL always.

Definition at line 206 of file PureImageManager.cpp.

◆ loadBMP()

PureImage * PureImageManager::PureImageManagerImpl::loadBMP ( const char * filename)

This loads BMP files, handles the actual file operations, and creates the Image object.

Can load any bit depth BMP in theory, but below 16 bits, the rules are the following:

  • at 8 bits (256 colors) the width of the image must be divisible by 4;
  • at 4 bits (16 colors) the width of the image must be divisible by 8;
  • at 1 bits (2 colors) the width of the image must be divisible by 32.
Returns
The created Image object on success, PGENULL otherwise.

Definition at line 79 of file PureImageManager.cpp.

◆ loadBMPfail()

PureImage * PureImageManager::PureImageManagerImpl::loadBMPfail ( HANDLE f,
PureImage * img,
RGBQUAD * palette,
const char * msg )
private

Used by loadBMP() when an error occurs.

Returns
PGENULL always.

Definition at line 191 of file PureImageManager.cpp.

◆ operator=()

PureImageManager::PureImageManagerImpl & PureImageManager::PureImageManagerImpl::operator= ( const PureImageManagerImpl & )
private

Definition at line 181 of file PureImageManager.cpp.

Friends And Related Symbol Documentation

◆ PureImageManager

friend class PureImageManager
friend

Definition at line 53 of file PureImageManager.cpp.

Member Data Documentation

◆ _pOwner

PureImageManager* PureImageManager::PureImageManagerImpl::_pOwner
private

The owner public object who creates this pimpl object.

Definition at line 42 of file PureImageManager.cpp.

◆ nRunningCounter

TPureUInt PureImageManager::PureImageManagerImpl::nRunningCounter
private

Always increased when creating a new Image instance.

Definition at line 43 of file PureImageManager.cpp.

◆ pHWInfo

PureHwInfo & PureImageManager::PureImageManagerImpl::pHWInfo = PureHwInfo::get()
staticprotected

We need some info on HW.

Definition at line 37 of file PureImageManager.cpp.


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