![]() |
Public API Reference |
#include <ldrctxt.h>
Inheritance diagram for iLoaderContext:
Public Methods | |
virtual iSector * | FindSector (const char *name)=0 |
Find a sector. More... | |
virtual iMaterialWrapper * | FindMaterial (const char *name)=0 |
Find a material. More... | |
virtual iMeshFactoryWrapper * | FindMeshFactory (const char *name)=0 |
Find a mesh factory. More... | |
virtual iMeshWrapper * | FindMeshObject (const char *name)=0 |
Find a mesh object. More... | |
virtual iTextureWrapper * | FindTexture (const char *name)=0 |
Find a texture. More... | |
virtual iLight * | FindLight (const char *name)=0 |
Find a light. More... | |
virtual bool | CheckDupes () const=0 |
Return true if we check for dupes (to avoid objects with same name being loaded again. More... | |
virtual iRegion * | GetRegion () const=0 |
Return a region if we only want to load in that region. More... | |
virtual bool | CurrentRegionOnly () const=0 |
Return true if we only want to look for objects in the region given by GetRegion(). More... |
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.
Definition at line 51 of file ldrctxt.h.
|
Return true if we check for dupes (to avoid objects with same name being loaded again.
|
|
Return true if we only want to look for objects in the region given by GetRegion().
|
|
Find a light.
|
|
Find a material.
|
|
Find a mesh factory.
|
|
Find a mesh object.
|
|
Find a sector.
|
|
Find a texture.
|
|
Return a region if we only want to load in that region. 0 otherwise. If not 0 then all objects will be created in the region. |