![]() |
PURE API 0.5
PR00F's Ultimate Rendering Engine full documentation
|
Definition at line 30 of file PR00FsUltimateRenderingEngine.cpp.
Public Member Functions | |
virtual | ~PR00FsUltimateRenderingEngineImpl () |
Calls shutdown(). | |
TPureUInt | initialize (TPURE_RENDERER rndr, TPureUInt width, TPureUInt height, TPURE_DISPLAY_MODES dmode, TPureUInt freq, TPureInt cdepth, TPureInt zdepth, TPureInt stencil, TPureInt samples, HWND window=NULL) |
Initializes the engine. | |
TPureBool | shutdown () |
This stops the engine. | |
TPureBool | isInitialized () const |
Gets the state of the engine. | |
PureScreen & | getScreen () const |
Get access to screen manipulation functions. | |
PureWindow & | getWindow () const |
Get access to window manipulation functions. | |
PureHwInfo & | getHardwareInfo () const |
Get access to hardware information. | |
PureImageManager & | getImageManager () const |
Get access to image handler functions. | |
PureTextureManager & | getTextureManager () const |
Get access to texture handler functions. | |
PureMaterialManager & | getMaterialManager () const |
Get access to material handler functions. | |
PureMesh3DManager & | getMesh3DManager () const |
Get access to Mesh3D handler functions. | |
PureObject3DManager & | getObject3DManager () const |
Get access to Object3D handler functions. | |
PureCamera & | getCamera () const |
Get access to camera handler functions. | |
PureUiManager & | getUImanager () const |
Get access to user interface functions. | |
PureIRenderer * | getRenderer () const |
Get access to the selected renderer. | |
void | setGuiDrawCallback (const std::function< void()> &cb) |
void | WriteList () const |
Invoke WriteList() of all children instances. | |
void | CopyScreenToTexture (PureTexture &tex) |
Copies screen content to texture. | |
void | PrintTexturesUnusedByMaterials () const |
void | PrintMaterialsUnusedByMeshes () const |
void | PrintMaterialsUnusedByObjects () const |
void | WriteStats () const |
TPureBool | getAutoWriteStatsAtShutdown () const |
Checks if invoke of WriteList() would happen at the beginning of shutdown(). | |
void | SetAutoWriteStatsAtShutdown (TPureBool state) |
Sets if invoke of WriteList() should happen at the beginning of shutdown(). | |
![]() | |
CConsole & | getConsole () const |
Returns access to console preset with logger module name as this class. | |
Private Member Functions | |
PR00FsUltimateRenderingEngineImpl (PGEcfgProfiles &cfgProfiles, PGEInputHandler &inputHandler) | |
If true, will invoke WriteStats() at the beginning of shutdown(). | |
PR00FsUltimateRenderingEngineImpl (const PR00FsUltimateRenderingEngineImpl &) | |
PR00FsUltimateRenderingEngineImpl & | operator= (const PR00FsUltimateRenderingEngineImpl &) |
Private Attributes | |
PGEcfgProfiles & | m_cfgProfiles |
PGEInputHandler & | m_inputHandler |
PureSharedSettings & | ssets |
Shared settings, singleton. | |
PureWindow & | wnd |
Our window, where we draw to, singleton. | |
PureHwInfo & | hwInfo |
Hardware infos, singleton. | |
PureScreen & | screen |
Our screen, singleton. | |
PureImageManager * | pImageMgr |
ImageManager, at least 1 instance. | |
PureTextureManager * | pTextureMgr |
TextureManager, at least 1 instance. | |
PureMaterialManager * | pMaterialMgr |
MaterialManager, at least 1 instance. | |
PureMesh3DManager * | pMesh3DMgr |
MeshManager, at least 1 instance. | |
PureObject3DManager * | pObject3DMgr |
ObjectManager, at least 1 instance. | |
PureCamera * | pCamera |
Camera, at least 1 instance. | |
PureUiManager & | uiMgr |
UI manager, singleton. | |
PureIRenderer * | pRenderer |
Renderer, singleton. | |
TPureBool | bAutoWriteStatsAtShutdown |
Friends | |
class | PR00FsUltimateRenderingEngine |
Additional Inherited Members | |
![]() | |
static PR00FsUltimateRenderingEngine & | createAndGet (PGEcfgProfiles &cfgProfiles, PGEInputHandler &inputHandler) |
Creates and gets the singleton implementation instance. | |
static const char * | getLoggerModuleName () |
Returns the logger module name of this class. | |
|
virtual |
Calls shutdown().
Definition at line 107 of file PR00FsUltimateRenderingEngine.cpp.
|
explicitprivate |
If true, will invoke WriteStats() at the beginning of shutdown().
NULLs members only.
Default false. NULLs members only.
Definition at line 745 of file PR00FsUltimateRenderingEngine.cpp.
|
private |
Definition at line 762 of file PR00FsUltimateRenderingEngine.cpp.
|
virtual |
Copies screen content to texture.
tex | The target texture to where we save content of the screen. Width of the texture must be same as viewport width of the camera. |
Implements PR00FsUltimateRenderingEngine.
Definition at line 699 of file PR00FsUltimateRenderingEngine.cpp.
|
virtual |
Checks if invoke of WriteList() would happen at the beginning of shutdown().
Default false.
Implements PR00FsUltimateRenderingEngine.
Definition at line 676 of file PR00FsUltimateRenderingEngine.cpp.
|
virtual |
Get access to camera handler functions.
Implements PR00FsUltimateRenderingEngine.
Definition at line 417 of file PR00FsUltimateRenderingEngine.cpp.
|
virtual |
Get access to hardware information.
Implements PR00FsUltimateRenderingEngine.
Definition at line 356 of file PR00FsUltimateRenderingEngine.cpp.
|
virtual |
Get access to image handler functions.
Implements PR00FsUltimateRenderingEngine.
Definition at line 367 of file PR00FsUltimateRenderingEngine.cpp.
|
virtual |
Get access to material handler functions.
Implements PR00FsUltimateRenderingEngine.
Definition at line 389 of file PR00FsUltimateRenderingEngine.cpp.
|
virtual |
Get access to Mesh3D handler functions.
Implements PR00FsUltimateRenderingEngine.
Definition at line 395 of file PR00FsUltimateRenderingEngine.cpp.
|
virtual |
Get access to Object3D handler functions.
Implements PR00FsUltimateRenderingEngine.
Definition at line 406 of file PR00FsUltimateRenderingEngine.cpp.
|
virtual |
Get access to the selected renderer.
Implements PR00FsUltimateRenderingEngine.
Definition at line 439 of file PR00FsUltimateRenderingEngine.cpp.
|
virtual |
Get access to screen manipulation functions.
Implements PR00FsUltimateRenderingEngine.
Definition at line 334 of file PR00FsUltimateRenderingEngine.cpp.
|
virtual |
Get access to texture handler functions.
Implements PR00FsUltimateRenderingEngine.
Definition at line 378 of file PR00FsUltimateRenderingEngine.cpp.
|
virtual |
Get access to user interface functions.
Implements PR00FsUltimateRenderingEngine.
Definition at line 428 of file PR00FsUltimateRenderingEngine.cpp.
|
virtual |
Get access to window manipulation functions.
Implements PR00FsUltimateRenderingEngine.
Definition at line 345 of file PR00FsUltimateRenderingEngine.cpp.
|
virtual |
Initializes the engine.
Tries to set the given display mode, then initializes OpenGL.
rndr | Which renderer to use. |
width | See initialize() of the selected renderer. |
height | See initialize() of the selected renderer. |
dmode | See initialize() of the selected renderer. |
freq | See initialize() of the selected renderer. |
cdepth | See initialize() of the selected renderer. |
zdepth | See initialize() of the selected renderer. |
stencil | See initialize() of the selected renderer. |
samples | See initialize() of the selected renderer. |
window | See initialize() of the selected renderer. |
Implements PR00FsUltimateRenderingEngine.
Definition at line 130 of file PR00FsUltimateRenderingEngine.cpp.
|
virtual |
Gets the state of the engine.
Implements PR00FsUltimateRenderingEngine.
Definition at line 323 of file PR00FsUltimateRenderingEngine.cpp.
|
private |
Definition at line 775 of file PR00FsUltimateRenderingEngine.cpp.
void PR00FsUltimateRenderingEngineImpl::PrintMaterialsUnusedByMeshes | ( | ) | const |
Definition at line 489 of file PR00FsUltimateRenderingEngine.cpp.
void PR00FsUltimateRenderingEngineImpl::PrintMaterialsUnusedByObjects | ( | ) | const |
Definition at line 540 of file PR00FsUltimateRenderingEngine.cpp.
void PR00FsUltimateRenderingEngineImpl::PrintTexturesUnusedByMaterials | ( | ) | const |
Definition at line 445 of file PR00FsUltimateRenderingEngine.cpp.
|
virtual |
Sets if invoke of WriteList() should happen at the beginning of shutdown().
Default false.
state | If true WriteList() will be invoked automatically at the beginning of shutdown(), otherwise it won't be invoked. |
Implements PR00FsUltimateRenderingEngine.
Definition at line 688 of file PR00FsUltimateRenderingEngine.cpp.
void PR00FsUltimateRenderingEngineImpl::setGuiDrawCallback | ( | const std::function< void()> & | cb | ) |
|
virtual |
This stops the engine.
Deletes everything created by the engine (window, textures, models, etc...). No effect before initialization. After shutdown, initialize() can be called again.
Implements PR00FsUltimateRenderingEngine.
Definition at line 253 of file PR00FsUltimateRenderingEngine.cpp.
|
virtual |
Invoke WriteList() of all children instances.
This will give you a verbose list of all created/loaded managed and manager instances with information about resource usage.
Implements PR00FsUltimateRenderingEngine.
Definition at line 611 of file PR00FsUltimateRenderingEngine.cpp.
void PR00FsUltimateRenderingEngineImpl::WriteStats | ( | ) | const |
|
friend |
Definition at line 96 of file PR00FsUltimateRenderingEngine.cpp.
|
private |
Definition at line 86 of file PR00FsUltimateRenderingEngine.cpp.
|
private |
Hardware infos, singleton.
Definition at line 76 of file PR00FsUltimateRenderingEngine.cpp.
|
private |
Definition at line 72 of file PR00FsUltimateRenderingEngine.cpp.
|
private |
Definition at line 73 of file PR00FsUltimateRenderingEngine.cpp.
|
private |
Camera, at least 1 instance.
Definition at line 83 of file PR00FsUltimateRenderingEngine.cpp.
|
private |
ImageManager, at least 1 instance.
Definition at line 78 of file PR00FsUltimateRenderingEngine.cpp.
|
private |
MaterialManager, at least 1 instance.
Definition at line 80 of file PR00FsUltimateRenderingEngine.cpp.
|
private |
MeshManager, at least 1 instance.
Definition at line 81 of file PR00FsUltimateRenderingEngine.cpp.
|
private |
ObjectManager, at least 1 instance.
Definition at line 82 of file PR00FsUltimateRenderingEngine.cpp.
|
private |
Renderer, singleton.
Definition at line 85 of file PR00FsUltimateRenderingEngine.cpp.
|
private |
TextureManager, at least 1 instance.
Definition at line 79 of file PR00FsUltimateRenderingEngine.cpp.
|
private |
Our screen, singleton.
Definition at line 77 of file PR00FsUltimateRenderingEngine.cpp.
|
private |
Shared settings, singleton.
Definition at line 74 of file PR00FsUltimateRenderingEngine.cpp.
|
private |
UI manager, singleton.
Definition at line 84 of file PR00FsUltimateRenderingEngine.cpp.
|
private |
Our window, where we draw to, singleton.
Definition at line 75 of file PR00FsUltimateRenderingEngine.cpp.