#include <u_shape_bank.h>
Inheritance diagram for NL3D::UShapeBank:
Nevrax France
Definition at line 48 of file u_shape_bank.h.
Public Member Functions | |
virtual void | addShapeCache (const std::string &shapeCacheName)=0 |
virtual UShape | getShape (const std::string &shapeName)=0 |
virtual void | linkShapeToShapeCache (const std::string &shapeName, const std::string &shapeCacheName)=0 |
virtual void | preLoadShapesFromBNP (const std::string &shapeCacheName, const std::string &bnpName, const std::string &wildCard, NLMISC::IProgressCallback *progress=NULL, bool flushTextures=false)=0 |
virtual void | preLoadShapesFromDirectory (const std::string &shapeCacheName, const std::string &path, const std::string &wildCard, bool recurs=false, NLMISC::IProgressCallback *progress=NULL, bool flushTextures=false)=0 |
virtual void | removeShapeCache (const std::string &shapeCacheName)=0 |
virtual void | reset ()=0 |
virtual void | setShapeCacheSize (const std::string &shapeCacheName, sint32 maxSize)=0 |
|
Add a new ShapeCache. If already exist do nothing. Implemented in NL3D::CShapeBankUser. |
|
Return a UShape proxy from this name. NB: if not found the mesh is not loaded, and the proxy returned will be empty Implemented in NL3D::CShapeBankUser. |
|
Link a shape to a ShapeCache. The ShapeCache must exist and must not contains the shape. Implemented in NL3D::CShapeBankUser. |
|
PreLoad all shapes (.shape, .ps, .skel...) files from a directory into a shapeCache. same as preLoadShapesFromDirectory() but take a BNP name which must have been added with CBigFile::add() or through CPath::addSearchBigFile()
Implemented in NL3D::CShapeBankUser. |
|
PreLoad all shapes (.shape, .ps, .skel...) files from a directory into a shapeCache. Shapes are Loaded if not present, assigned to the given cache, and fit in the cache Size as max possible. NB: crash if you try to load a non shape file (eg: a .dds etc...)
Implemented in NL3D::CShapeBankUser. |
|
Remove a ShapeCache. All shapes in the shape cache are deleted. All links are redirected to the default ShapeCache. Implemented in NL3D::CShapeBankUser. |
|
Remove all ShapeCache and suppress all links (even the link to the default cache are removed) Implemented in NL3D::CShapeBankUser. |
|
Set the shapeCache shapeCacheName the new size.(delete shapes if maxsize<shapeCacheSize). Implemented in NL3D::CShapeBankUser. |