#include <ldrctxt.h>
Inheritance diagram for iLoaderContext:
Public Methods | |
virtual iSector* | FindSector (const char *name)=0 |
Find a sector. | |
virtual iMaterialWrapper* | FindMaterial (const char *name)=0 |
Find a material. | |
virtual iMeshFactoryWrapper* | FindMeshFactory (const char *name)=0 |
Find a mesh factory. | |
virtual iMeshWrapper* | FindMeshObject (const char *name)=0 |
Find a mesh object. |
It basically gives loading plugins a way to find materials, meshes, and sectors. In all these cases region-qualified names can be used (i.e. 'regionname/objectname') or normal object names.
WARNING! When a context is created it should not be modified afterwards. Some loader plugins will keep a reference to the context when they support delayed loading. In that case they still need the original contents in the context. So a loader that creates a context should create a new one every time.