#include <cal3dloader.h>
Public Member Functions | |
| Cal3DLoader () | |
| bool | Load (const std::string &filename, Cal3DModelData *&data_in) |
| Load an animated entity definition file and return the Cal3DModelWrapper. | |
| void | PurgeAllCaches () |
| empty all containers of CalCoreModels and the stored textures | |
Protected Member Functions | |
| virtual | ~Cal3DLoader () |
Caches the CalCoreModel defined by the file to make it faster to create additional instances of CalModels. If you call Load() with the same filename twice, it actually only loads once.
| dtAnim::Cal3DLoader::Cal3DLoader | ( | ) |
| dtAnim::Cal3DLoader::~Cal3DLoader | ( | ) | [protected, virtual] |
| bool dtAnim::Cal3DLoader::Load | ( | const std::string & | filename, | |
| Cal3DModelData *& | data_in | |||
| ) |
Load an animated entity definition file and return the Cal3DModelWrapper.
Will use the Delta3D search paths to find the supplied filename.
Will create a new Cal3DModelWrapper, but you're responsible for deleting it.
| SAXParseException | If the file wasn't formatted correctly |
| void dtAnim::Cal3DLoader::PurgeAllCaches | ( | ) |
empty all containers of CalCoreModels and the stored textures
Use if you want to completely start over with no history of previous animated entities that have been created.
This will allow you to reload files for a second time.