crystalspace.jbind.interfaces.imap.ldrctxt
Interface iLoaderContext

All Superinterfaces:
iBase, iPointer
All Known Implementing Classes:
csLoaderContext

public interface iLoaderContext
extends iBase

This interface gives the context for the loader. 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.

Author:
Java wrapper - Quentin Anciaux, c++ version - http://crystal.sourceforge.net/docs/online/devapi/structiLoaderContext.php

Method Summary
 boolean checkDupes()
          Return true if we check for dupes (to avoid objects with same name being loaded again.
 boolean currentRegionOnly()
          Return true if we only want to look for objects in the region given by GetRegion();.
 iLight findLight(java.lang.String name)
          Find a light.
 iMaterialWrapper findMaterial(java.lang.String name)
          Find a material.
 iMeshFactoryWrapper findMeshFactory(java.lang.String name)
          Find a mesh factory.
 iMeshWrapper findMeshObject(java.lang.String name)
          Find a mesh object.
 iSector findSector(java.lang.String name)
          Find a sector.
 iTextureWrapper findTexture(java.lang.String name)
          Find a texture.
 iRegion getRegion()
          Return a region if we only want to load in that region. 0 otherwise.
 
Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase
decRef, getName, getRefCount, getVersion, incRef, queryInterface, queryInterfaceSafe
 
Methods inherited from interface crystalspace.jbind.interfaces.iPointer
changePointer, getPointer, isMemoryOwner, setMemoryOwner
 

Method Detail

checkDupes

public boolean checkDupes()
Return true if we check for dupes (to avoid objects with same name being loaded again.

Returns:

currentRegionOnly

public boolean currentRegionOnly()
Return true if we only want to look for objects in the region given by GetRegion();.

Returns:

findLight

public iLight findLight(java.lang.String name)
Find a light.

Parameters:
name -
Returns:

findMaterial

public iMaterialWrapper findMaterial(java.lang.String name)
Find a material.

Parameters:
name -
Returns:

findMeshFactory

public iMeshFactoryWrapper findMeshFactory(java.lang.String name)
Find a mesh factory.

Parameters:
name -
Returns:

findMeshObject

public iMeshWrapper findMeshObject(java.lang.String name)
Find a mesh object.

Parameters:
name -
Returns:

findSector

public iSector findSector(java.lang.String name)
Find a sector.

Parameters:
name -
Returns:

findTexture

public iTextureWrapper findTexture(java.lang.String name)
Find a texture.

Parameters:
name -
Returns:

getRegion

public iRegion getRegion()
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.

Returns: