| - Cal3D 0.11 API Reference - |
The loader class. More...
#include <loader.h>
Static Public Member Functions | |
| static CalCoreAnimationPtr | loadCoreAnimation (const std::string &strFilename, CalCoreSkeleton *skel=NULL) |
| Loads a core animation instance. | |
| static CalCoreMaterialPtr | loadCoreMaterial (const std::string &strFilename) |
| Loads a core material instance. | |
| static CalCoreMeshPtr | loadCoreMesh (const std::string &strFilename) |
| Loads a core mesh instance. | |
| static CalCoreSkeletonPtr | loadCoreSkeleton (const std::string &strFilename) |
| Loads a core skeleton instance. | |
| static CalCoreAnimatedMorph * | loadCoreAnimatedMorph (const std::string &strFilename) |
| Loads a core animatedMorph instance. | |
| static CalCoreAnimationPtr | loadCoreAnimation (std::istream &inputStream, CalCoreSkeleton *skel=NULL) |
| Loads a core animation instance. | |
| static CalCoreAnimatedMorph * | loadCoreAnimatedMorph (std::istream &inputStream) |
| static CalCoreMaterialPtr | loadCoreMaterial (std::istream &inputStream) |
| Loads a core material instance. | |
| static CalCoreMeshPtr | loadCoreMesh (std::istream &inputStream) |
| Loads a core mesh instance. | |
| static CalCoreSkeletonPtr | loadCoreSkeleton (std::istream &inputStream) |
| Loads a core skeleton instance. | |
| static CalCoreAnimationPtr | loadCoreAnimation (void *inputBuffer, CalCoreSkeleton *skel=NULL) |
| Loads a core animation instance. | |
| static CalCoreAnimatedMorph * | loadCoreAnimatedMorphFromBuffer (void *inputBuffer, unsigned int len) |
| Loads a core animatedMorph instance. | |
| static CalCoreMaterialPtr | loadCoreMaterial (void *inputBuffer) |
| Loads a core material instance. | |
| static CalCoreMeshPtr | loadCoreMesh (void *inputBuffer) |
| Loads a core mesh instance. | |
| static CalCoreSkeletonPtr | loadCoreSkeleton (void *inputBuffer) |
| Loads a core skeleton instance. | |
| static CalCoreAnimationPtr | loadCoreAnimation (CalDataSource &inputSrc, CalCoreSkeleton *skel=NULL) |
| Loads a core animation instance. | |
| static CalCoreAnimatedMorph * | loadCoreAnimatedMorph (CalDataSource &inputSrc) |
| Loads a core animatedMorph instance. | |
| static CalCoreMaterialPtr | loadCoreMaterial (CalDataSource &inputSrc) |
| Loads a core material instance. | |
| static CalCoreMeshPtr | loadCoreMesh (CalDataSource &inputSrc) |
| Loads a core mesh instance. | |
| static CalCoreSkeletonPtr | loadCoreSkeleton (CalDataSource &inputSrc) |
| Loads a core skeleton instance. | |
| static void | setLoadingMode (int flags) |
| Sets optional flags which affect how the model is loaded into memory. | |
| static void | setAnimationCollapseSequencesOn (bool p) |
| static void | setAnimationLoadingCompressionOn (bool p) |
| static void | setAnimationTranslationTolerance (double p) |
| static void | setAnimationRotationToleranceDegrees (double p) |
| static bool | getAnimationLoadingCompressionOn () |
| static CalCoreKeyframe * | loadCoreKeyframe (CalDataSource &dataSrc) |
| static CalCoreKeyframe * | loadCompressedCoreKeyframe (CalDataSource &dataSrc, const CalVector &trackMinPt, const CalVector &trackScale, float trackDuration) |
| Loads a core compressed keyframe instance. | |
| static double | getAnimationTranslationTolerance () |
| static double | getAnimationRotationToleranceDegrees () |
| static int | getAnimationNumEliminatedKeyframes () |
| static int | getAnimationNumKeptKeyframes () |
| static int | getAnimationNumRoundedKeyframes () |
| static int | getAnimationNumCompressedAnimations () |
| static void | addAnimationCompressionStatistic (int totalKeyframes, int eliminatedKeyframes, int numRounded) |
| static void | resetCompressionStatistics () |
| static bool | usesAnimationCompression (int version) |
| static unsigned int | compressedKeyframeRequiredBytes (CalCoreKeyframe *lastCoreKeyframe, bool translationRequired, bool highRangeRequired, bool translationIsDynamic) |
| static unsigned int | readCompressedKeyframe (unsigned char *buf, unsigned int bytes, CalCoreBone *coreboneOrNull, CalVector *vecResult, CalQuaternion *quatResult, float *timeResult, CalCoreKeyframe *lastCoreKeyframe, bool translationRequired, bool highRangeRequired, bool translationIsDynamic, bool useAnimationCompression) |
| static unsigned int | writeCompressedKeyframe (unsigned char *buf, unsigned int bufLen, const std::string &strFilename, CalVector const &translation, CalQuaternion const &rotation, float caltime, int version, bool needTranslation, bool highRangeRequired) |
| static void | compressCoreAnimation (CalCoreAnimation *anim, CalCoreSkeleton *skel) |
| static CalCoreAnimationPtr | loadXmlCoreAnimation (const std::string &strFilename, CalCoreSkeleton *skel=NULL) |
| Loads a core animation instance from a XML file. | |
| static CalCoreAnimationPtr | loadXmlCoreAnimation (const char *, CalCoreSkeleton *skel) |
| Loads a core animation instance from a XML file. | |
| static CalCoreAnimationPtr | loadXmlCoreAnimation (cal3d::TiXmlDocument &doc, CalCoreSkeleton *skel) |
| Loads a core animation instance from a XML file. | |
| static CalCoreSkeletonPtr | loadXmlCoreSkeleton (const std::string &strFilename) |
| Loads a core skeleton instance from a XML file. | |
| static CalCoreMeshPtr | loadXmlCoreMesh (const std::string &strFilename) |
| Loads a core mesh instance from a Xml file. | |
| static CalCoreMaterialPtr | loadXmlCoreMaterial (const std::string &strFilename) |
| Loads a core material instance from a XML file. | |
| static CalCoreAnimatedMorph * | loadXmlCoreAnimatedMorph (const std::string &strFilename) |
| Loads a core animatedMorph instance from a XML file. | |
| static CalCoreAnimatedMorph * | loadXmlCoreAnimatedMorph (const void *) |
| Loads a core animatedMorph instance from a XML file. | |
| static CalCoreAnimatedMorph * | loadXmlCoreAnimatedMorph (cal3d::TiXmlDocument &doc) |
| Loads a core animatedMorph instance from a XML file. | |
| static CalCoreSkeletonPtr | loadXmlCoreSkeletonFromFile (const std::string &strFilename) |
| Loads a core skeleton instance from a XML file. | |
| static CalCoreSkeletonPtr | loadXmlCoreSkeleton (const void *) |
| Loads a core skeleton instance from a XML file. | |
| static CalCoreMeshPtr | loadXmlCoreMesh (const void *) |
| Loads a core Mesh instance from a XML file. | |
| static CalCoreMaterialPtr | loadXmlCoreMaterial (const void *) |
| Loads a core Material instance from a XML file. | |
| static CalCoreBone * | loadCoreBones (CalDataSource &dataSrc, int version) |
| Loads a core bone instance. | |
| static CalCoreKeyframe * | loadCoreKeyframe (CalDataSource &dataSrc, CalCoreBone *coreboneOrNull, int version, CalCoreKeyframe *lastCoreKeyframe, bool translationRequired, bool highRangeRequired, bool translationIsDynamic, bool useAnimationCompression) |
| Loads a core keyframe instance. | |
| static CalCoreMorphKeyframe * | loadCoreMorphKeyframe (CalDataSource &dataSrc) |
| Loads a core morphKeyframe instance. | |
| static CalCoreSubmesh * | loadCoreSubmesh (CalDataSource &dataSrc, int version) |
| Loads a core submesh instance. | |
| static CalCoreTrack * | loadCoreTrack (CalDataSource &dataSrc, CalCoreSkeleton *skel, int version, bool useAnimationCompresssion) |
| Loads a core track instance. | |
| static CalCoreMorphTrack * | loadCoreMorphTrack (CalDataSource &dataSrc) |
| Loads a core morphTrack instance. | |
| static CalCoreSkeletonPtr | loadXmlCoreSkeleton (cal3d::TiXmlDocument &doc) |
| Loads a core skeleton instance from a XML file. | |
| static CalCoreMeshPtr | loadXmlCoreMesh (cal3d::TiXmlDocument &doc) |
| Loads a core mesh instance from a Xml file. | |
| static CalCoreMaterialPtr | loadXmlCoreMaterial (cal3d::TiXmlDocument &doc) |
| Loads a core material instance from a XML file. | |
The loader class.
|
static |
Loads a core compressed keyframe instance.
This function loads a core compressed keyframe instance from a data source.
| dataSrc | The data source to load the core compressed keyframe instance from. |
|
static |
Loads a core animatedMorph instance.
This function loads a core animatedMorph instance from a data source.
| dataSrc | The data source to load the core animatedMorph instance from. |
|
static |
Loads a core animatedMorph instance.
This function loads a core animatedMorph instance from a file.
| strFilename | The file to load the core animatedMorph instance from. |
|
static |
Loads a core animatedMorph instance.
This function loads a core animatedMorph instance from a memory buffer.
| inputBuffer | The memory buffer to load the core animatedMorph instance from. This buffer should be initialized and ready to be read from. |
|
static |
Loads a core animation instance.
This function loads a core animation instance from a data source.
| dataSrc | The data source to load the core animation instance from. |
|
static |
Loads a core animation instance.
This function loads a core animation instance from a file.
| strFilename | The file to load the core animation instance from. |
|
static |
Loads a core animation instance.
This function loads a core animation instance from an input stream.
| inputStream | The stream to load the core animation instance from. This stream should be initialized and ready to be read from. |
|
static |
Loads a core animation instance.
This function loads a core animation instance from a memory buffer.
| inputBuffer | The memory buffer to load the core animation instance from. This buffer should be initialized and ready to be read from. |
|
static |
Loads a core bone instance.
This function loads a core bone instance from a data source.
| dataSrc | The data source to load the core bone instance from. |
|
static |
Loads a core keyframe instance.
This function loads a core keyframe instance from a data source.
| dataSrc | The data source to load the core keyframe instance from. |
|
static |
Loads a core material instance.
This function loads a core material instance from a data source.
| dataSrc | The data source to load the core material instance from. |
|
static |
Loads a core material instance.
This function loads a core material instance from a file.
| strFilename | The file to load the core material instance from. |
|
static |
Loads a core material instance.
This function loads a core material instance from an input stream.
| inputStream | The stream to load the core material instance from. This stream should be initialized and ready to be read from. |
|
static |
Loads a core material instance.
This function loads a core material instance from a memory buffer.
| inputBuffer | The memory buffer to load the core material instance from. This buffer should be initialized and ready to be read from. |
|
static |
Loads a core mesh instance.
This function loads a core mesh instance from a data source.
| dataSrc | The data source to load the core mesh instance from. |
|
static |
Loads a core mesh instance.
This function loads a core mesh instance from a file.
| strFilename | The file to load the core mesh instance from. |
|
static |
Loads a core mesh instance.
This function loads a core mesh instance from an input stream.
| inputStream | The stream to load the core mesh instance from. This stream should be initialized and ready to be read from. |
|
static |
Loads a core mesh instance.
This function loads a core mesh instance from a memory buffer.
| inputBuffer | The memory buffer to load the core mesh instance from. This buffer should be initialized and ready to be read from. |
|
static |
Loads a core morphKeyframe instance.
This function loads a core morphKeyframe instance from a data source.
| dataSrc | The data source to load the core morphKeyframe instance from. |
|
static |
Loads a core morphTrack instance.
This function loads a core morphTrack instance from a data source.
| dataSrc | The data source to load the core morphTrack instance from. |
|
static |
Loads a core skeleton instance.
This function loads a core skeleton instance from a data source.
| dataSrc | The data source to load the core skeleton instance from. |
|
static |
Loads a core skeleton instance.
This function loads a core skeleton instance from a file.
| strFilename | The file to load the core skeleton instance from. |
|
static |
Loads a core skeleton instance.
This function loads a core skeleton instance from an input stream.
| inputStream | The stream to load the core skeleton instance from. This stream should be initialized and ready to be read from. |
|
static |
Loads a core skeleton instance.
This function loads a core skeleton instance from a memory buffer.
| inputBuffer | The memory buffer to load the core skeleton instance from. This buffer should be initialized and ready to be read from. |
|
static |
Loads a core submesh instance.
This function loads a core submesh instance from a data source.
| dataSrc | The data source to load the core submesh instance from. |
|
static |
Loads a core track instance.
This function loads a core track instance from a data source.
| dataSrc | The data source to load the core track instance from. |
|
static |
Loads a core animatedMorph instance from a XML file.
This function loads a core animatedMorph instance from a XML file.
| strFilename | The name of the file to load the core animatedMorph instance from. |
|
static |
Loads a core animatedMorph instance from a XML file.
This function loads a core animatedMorph instance from a XML file.
| strFilename | The name of the file to load the core animatedMorph instance from. |
|
static |
Loads a core animatedMorph instance from a XML file.
This function loads a core animatedMorph instance from a XML file.
| strFilename | The name of the file to load the core animatedMorph instance from. |
|
static |
Loads a core animation instance from a XML file.
This function loads a core animation instance from a XML file.
| strFilename | The name of the file to load the core animation instance from. |
|
static |
Loads a core animation instance from a XML file.
This function loads a core animation instance from a XML file.
| strFilename | The name of the file to load the core animation instance from. |
|
static |
Loads a core animation instance from a XML file.
This function loads a core animation instance from a XML file.
| strFilename | The name of the file to load the core animation instance from. |
|
static |
Loads a core material instance from a XML file.
This function loads a core material instance from a XML file.
| strFilename | The name of the file to load the core material instance from. |
|
static |
Loads a core material instance from a XML file.
This function loads a core material instance from a XML file.
| strFilename | The name of the file to load the core material instance from. |
|
static |
Loads a core Material instance from a XML file.
This function loads a core Material instance from a XML file.
| strFilename | The name of the file to load the core Material instance from. |
|
static |
Loads a core mesh instance from a Xml file.
This function loads a core mesh instance from a Xml file.
| strFilename | The name of the file to load the core mesh instance from. |
|
static |
Loads a core mesh instance from a Xml file.
This function loads a core mesh instance from a Xml file.
| strFilename | The name of the file to load the core mesh instance from. |
|
static |
Loads a core Mesh instance from a XML file.
This function loads a core Mesh instance from a XML file.
| strFilename | The name of the file to load the core Mesh instance from. |
|
static |
Loads a core skeleton instance from a XML file.
This function loads a core skeleton instance from a XML file.
| strFilename | The name of the file to load the core skeleton instance from. |
|
static |
Loads a core skeleton instance from a XML file.
This function loads a core skeleton instance from a XML file.
| strFilename | The name of the file to load the core skeleton instance from. |
|
static |
Loads a core skeleton instance from a XML file.
This function loads a core skeleton instance from a XML file.
| strFilename | The name of the file to load the core skeleton instance from. |
|
static |
Loads a core skeleton instance from a XML file.
This function loads a core skeleton instance from a XML file.
| strFilename | The name of the file to load the core skeleton instance from. |
|
static |
Sets optional flags which affect how the model is loaded into memory.
This function sets the loading mode for all future loader calls.
| flags | A boolean OR of any of the following flags
|