![]() |
PURE API 0.5
PR00F's Ultimate Rendering Engine full documentation
|
Material manager class. More...
Material manager class.
Definition at line 249 of file PureMaterialManager.h.
#include <PureMaterialManager.h>
Classes | |
class | PureMaterialManagerImpl |
Public Member Functions | |
PureMaterialManager () | |
virtual | ~PureMaterialManager () |
CConsole & | getConsole () const |
Returns access to console preset with logger module name as this class. | |
TPureBool | isInitialized () const |
Tells whether the object is correctly initialized or not. | |
TPureUInt | getMaximumLayerCount () const |
Tells maximum number of layers allowed per material. | |
PureMaterial * | createMaterial () |
Creates a new material. | |
virtual void | WriteList () const |
From PureFiledManager, adding logging material data. | |
![]() | |
PureFiledManager () | |
virtual | ~PureFiledManager () |
CConsole & | getConsole () const |
Returns access to console preset with logger module name as this class. | |
PureFiledManaged * | getByFilename (const char *filename) const |
Gets the FiledManaged by the specified filename. | |
virtual PureFiledManaged * | createFromFile (const char *filename) |
Should create a new managed from the given file. | |
![]() | |
PureManager () | |
virtual | ~PureManager () |
CConsole & | getConsole () const |
Returns access to console preset with logger module name as this class. | |
TPureInt | getCount () const |
Gets the number of managed objects. | |
TPureBool | isEmpty () const |
Is the number of manageds 0? | |
TPureInt | getSize () const |
Gets the number of allocated slots for managed objects; getSize() >= getCount(). | |
PureManaged * | getAttachedAt (TPureInt ind) const |
Gets the pointer to the managed at the given index. | |
TPureInt | getAttachedIndex (const PureManaged &m) const |
Gets the index of the given managed. | |
void | PreAlloc (TPureInt count) |
Allocates count free slots for manageds. | |
TPureBool | hasAttached (const PureManaged &m) const |
Gets whether the given managed is managed by this manager. | |
virtual void | Attach (PureManaged &m) |
Adds the given managed to the manager, if the managed has no manager yet. | |
virtual void | Detach (PureManaged &m) |
Removes the given managed from the manager, so the managed will have no manager. | |
void | DeleteAttachedInstance (PureManaged &m) |
Removes the given managed from the manager and destructs it. | |
void | DeleteAll () |
Removes and destructs every managed element in the manager. | |
virtual void | HandleManagedPropertyChanged (PureManaged &m) |
Should be invoked when a managed's property got changed from a different kind of manager or managed. | |
virtual TPureUInt | getUsedSystemMemory () const |
Gets the amount of allocated system memory for all manageds owner by this manager. | |
Static Public Member Functions | |
static const char * | getLoggerModuleName () |
Returns the logger module name of this class. | |
![]() | |
static const char * | getLoggerModuleName () |
Returns the logger module name of this class. | |
![]() | |
static const char * | getLoggerModuleName () |
Returns the logger module name of this class. | |
Protected Member Functions | |
PureMaterialManager (const PureMaterialManager &) | |
PureMaterialManager & | operator= (const PureMaterialManager &) |
virtual void | WriteListCallback (const PureManaged &mngd) const |
From PureManager, printing filename. | |
![]() | |
PureFiledManager (const PureFiledManager &) | |
PureFiledManager & | operator= (const PureFiledManager &) |
![]() | |
PureManager (const PureManager &other) | |
PureManager & | operator= (const PureManager &) |
Private Attributes | |
PureMaterialManagerImpl * | pImpl |
PureMaterialManager::PureMaterialManager | ( | ) |
std::bad_alloc | - This class or its ancestor dynamically allocates memory with operator new, in case of failure the exception is not handled but propagated to caller. |
Definition at line 134 of file PureMaterialManager.cpp.
|
virtual |
Definition at line 140 of file PureMaterialManager.cpp.
|
protected |
Definition at line 245 of file PureMaterialManager.cpp.
PureMaterial * PureMaterialManager::createMaterial | ( | ) |
Creates a new material.
Definition at line 198 of file PureMaterialManager.cpp.
CConsole & PureMaterialManager::getConsole | ( | ) | const |
Returns access to console preset with logger module name as this class.
Intentionally not virtual, so the getConsole() in derived class should hide this instead of overriding.
Definition at line 153 of file PureMaterialManager.cpp.
|
static |
Returns the logger module name of this class.
Intentionally not virtual, so derived class should hide this instead of overriding. Not even private, so user can also access this from outside, for any reason like controlling log filtering per logger module name.
Definition at line 166 of file PureMaterialManager.cpp.
TPureUInt PureMaterialManager::getMaximumLayerCount | ( | ) | const |
Tells maximum number of layers allowed per material.
This depends on number of hardware texture mapping units in current system.
Definition at line 186 of file PureMaterialManager.cpp.
TPureBool PureMaterialManager::isInitialized | ( | ) | const |
Tells whether the object is correctly initialized or not.
Definition at line 176 of file PureMaterialManager.cpp.
|
protected |
Definition at line 251 of file PureMaterialManager.cpp.
|
virtual |
From PureFiledManager, adding logging material data.
Reimplemented from PureFiledManager.
Definition at line 231 of file PureMaterialManager.cpp.
|
protectedvirtual |
From PureManager, printing filename.
Reimplemented from PureFiledManager.
Definition at line 257 of file PureMaterialManager.cpp.
|
private |
Definition at line 286 of file PureMaterialManager.h.