1 #ifndef OPENMW_COMPONENTS_BULLETSHAPEMANAGER_H
2 #define OPENMW_COMPONENTS_BULLETSHAPEMANAGER_H
18 class BulletShapeInstance;
20 class MultiObjectCache;
32 osg::ref_ptr<const BulletShape>
getShape(
const std::string&
name);
37 osg::ref_ptr<BulletShapeInstance>
cacheInstance(
const std::string& name);
40 osg::ref_ptr<BulletShapeInstance>
getInstance(
const std::string& name);
47 void reportStats(
unsigned int frameNumber, osg::Stats *stats)
const;
50 osg::ref_ptr<BulletShapeInstance>
createInstance(
const std::string& name);
osg::ref_ptr< BulletShapeInstance > createInstance(const std::string &name)
Definition: bulletshapemanager.cpp:173
Handles loading and caching of scenes, e.g. .nif files or .osg files.
Definition: scenemanager.hpp:44
osg::ref_ptr< const BulletShape > getShape(const std::string &name)
Definition: bulletshapemanager.cpp:111
virtual void clearCache()
Clear all cache entries.
Definition: bulletshapemanager.cpp:189
osg::ref_ptr< MultiObjectCache > mInstanceCache
Definition: bulletshapemanager.hpp:52
SceneManager * mSceneManager
Definition: bulletshapemanager.hpp:53
Handles caching of NIFFiles.
Definition: niffilemanager.hpp:15
osg::ref_ptr< BulletShapeInstance > cacheInstance(const std::string &name)
Definition: bulletshapemanager.cpp:150
~BulletShapeManager()
Definition: bulletshapemanager.cpp:106
BulletShapeManager(const VFS::Manager *vfs, SceneManager *sceneMgr, NifFileManager *nifFileManager)
Definition: bulletshapemanager.cpp:97
NifFileManager * mNifFileManager
Definition: bulletshapemanager.hpp:54
virtual void updateCache(double referenceTime)
Definition: bulletshapemanager.cpp:182
The main class responsible for loading files from a virtual file system.
Definition: manager.hpp:20
Base class for managers that require a virtual file system and object cache.
Definition: resourcemanager.hpp:23
void reportStats(unsigned int frameNumber, osg::Stats *stats) const
Definition: bulletshapemanager.cpp:196
osg::ref_ptr< BulletShapeInstance > getInstance(const std::string &name)
Definition: bulletshapemanager.cpp:161
Definition: bulletshapemanager.hpp:25
const char * name
Definition: crashcatcher.cpp:67