OpenMW
|
#include <skeleton.hpp>
Public Member Functions | |
void | loadResource (Ogre::Resource *resource) |
Static Public Member Functions | |
static Ogre::SkeletonPtr | createSkeleton (const std::string &name, const std::string &group, const Nif::Node *node) |
static int | lookupOgreBoneHandle (const std::string &nifname, int idx) |
Private Types | |
typedef std::map< std::string, NIFSkeletonLoader > | LoaderMap |
Private Member Functions | |
void | buildBones (Ogre::Skeleton *skel, const Nif::Node *node, Ogre::Bone *parent=NULL) |
Static Private Member Functions | |
static void | warn (const std::string &msg) |
static void | fail (const std::string &msg) |
static bool | needSkeleton (const Nif::Node *node) |
Private Attributes | |
std::map< int, int > | mNifToOgreHandleMap |
Static Private Attributes | |
static LoaderMap | sLoaders |
Manual resource loader for NIF skeletons. This is the main class responsible for translating the internal NIF skeleton structure into something Ogre can use (includes animations and node TextKeyData).
typedef std::map<std::string,NIFSkeletonLoader> NifOgre::NIFSkeletonLoader::LoaderMap [private] |
void NifOgre::NIFSkeletonLoader::buildBones | ( | Ogre::Skeleton * | skel, |
const Nif::Node * | node, | ||
Ogre::Bone * | parent = NULL |
||
) | [private] |
Ogre::SkeletonPtr NifOgre::NIFSkeletonLoader::createSkeleton | ( | const std::string & | name, |
const std::string & | group, | ||
const Nif::Node * | node | ||
) | [static] |
static void NifOgre::NIFSkeletonLoader::fail | ( | const std::string & | msg | ) | [inline, static, private] |
void NifOgre::NIFSkeletonLoader::loadResource | ( | Ogre::Resource * | resource | ) |
int NifOgre::NIFSkeletonLoader::lookupOgreBoneHandle | ( | const std::string & | nifname, |
int | idx | ||
) | [static] |
bool NifOgre::NIFSkeletonLoader::needSkeleton | ( | const Nif::Node * | node | ) | [static, private] |
static void NifOgre::NIFSkeletonLoader::warn | ( | const std::string & | msg | ) | [inline, static, private] |
std::map<int,int> NifOgre::NIFSkeletonLoader::mNifToOgreHandleMap [private] |
NIFSkeletonLoader::LoaderMap NifOgre::NIFSkeletonLoader::sLoaders [static, private] |