|
wavelength 1.0.0
|
Loader of one file of the load list of the gfx configuration. More...
#include <gfxmanager.h>


Public Member Functions | |
| GfxLoader (bool bDone, bool bMergeAll, DataArray *pForceMerge) | |
| Construct a loader that has not started. | |
| ~GfxLoader () override | |
| Destroy the loader. | |
| int | ShouldLoad (RndObject *pExisting, const char *pszName, const char *pszClass) override |
| Decide whether the file loads an object. | |
| void | Start (const char *pszFile, int nFlags) |
| Start to load a file. | |
| void | Finish () |
| Mark the load as finished and report the objects that were skipped. | |
| Public Member Functions inherited from RndLoader::Callback | |
| virtual void | SetObjectCount (int nObjects) |
| Receive the number of objects of the file before the first is created. | |
| virtual | ~Callback () |
| Destroy the callback. | |
Public Attributes | |
| String | mSkipped |
| std::unique_ptr< RndLoader > | mLoader |
| DataArray * | mForceMerge |
| int | mDone |
| int | mMergeAll |
Loader of one file of the load list of the gfx configuration.
The RTTI identifies the class. The object is 0x28 bytes. A file object that already exists is loaded again only when force_merge lists it. A skipped object that is not a texture, with merge_all clear, is reported once the file has loaded unless the list merges_always_allowed includes it.
| GfxManager::GfxLoader::GfxLoader | ( | bool | bDone, |
| bool | bMergeAll, | ||
| DataArray * | pForceMerge ) |
Construct a loader that has not started.
| bDone | Whether the load counts as finished. |
| bMergeAll | Whether every object that already exists is loaded again. |
| pForceMerge | The objects that are loaded again, or null. |
|
override |
Destroy the loader.
|
overridevirtual |
Decide whether the file loads an object.
| pExisting | The object of the same name that already exists, or null. |
| pszName | The name of the object. |
| pszClass | The class of the object. |
Implements RndLoader::Callback.
| void GfxManager::GfxLoader::Start | ( | const char * | pszFile, |
| int | nFlags ) |
Start to load a file.
| pszFile | The file. |
| nFlags | The load flags of RndManager::AddLoader(). |
| void GfxManager::GfxLoader::Finish | ( | ) |
Mark the load as finished and report the objects that were skipped.
| String GfxManager::GfxLoader::mSkipped |
The lines of the report of the skipped objects.
| std::unique_ptr<RndLoader> GfxManager::GfxLoader::mLoader |
The loader of the file, or null.
| DataArray* GfxManager::GfxLoader::mForceMerge |
The objects that are loaded again, or null.
| int GfxManager::GfxLoader::mDone |
Whether Finish() ran.
| int GfxManager::GfxLoader::mMergeAll |
Whether every object that already exists loads again.