OpenMW
|
#include <mesh.hpp>
Static Public Member Functions | |
static void | createMesh (const std::string &name, const std::string &fullname, const std::string &group, size_t idx) |
Private Types | |
typedef std::map< std::string, NIFMeshLoader > | LoaderMap |
Private Member Functions | |
void | createSubMesh (Ogre::Mesh *mesh, const Nif::NiTriShape *shape) |
NIFMeshLoader (const std::string &name, const std::string &group, size_t idx) | |
virtual void | loadResource (Ogre::Resource *resource) |
Static Private Member Functions | |
static void | warn (const std::string &msg) |
static void | fail (const std::string &msg) |
Private Attributes | |
std::string | mName |
std::string | mGroup |
size_t | mShapeIndex |
Static Private Attributes | |
static LoaderMap | sLoaders |
Manual resource loader for NiTriShapes. This is the main class responsible for translating the internal NIF meshes into something Ogre can use.
typedef std::map<std::string,NIFMeshLoader> NifOgre::NIFMeshLoader::LoaderMap [private] |
NifOgre::NIFMeshLoader::NIFMeshLoader | ( | const std::string & | name, |
const std::string & | group, | ||
size_t | idx | ||
) | [private] |
void NifOgre::NIFMeshLoader::createMesh | ( | const std::string & | name, |
const std::string & | fullname, | ||
const std::string & | group, | ||
size_t | idx | ||
) | [static] |
void NifOgre::NIFMeshLoader::createSubMesh | ( | Ogre::Mesh * | mesh, |
const Nif::NiTriShape * | shape | ||
) | [private] |
static void NifOgre::NIFMeshLoader::fail | ( | const std::string & | msg | ) | [inline, static, private] |
void NifOgre::NIFMeshLoader::loadResource | ( | Ogre::Resource * | resource | ) | [private, virtual] |
static void NifOgre::NIFMeshLoader::warn | ( | const std::string & | msg | ) | [inline, static, private] |
std::string NifOgre::NIFMeshLoader::mGroup [private] |
std::string NifOgre::NIFMeshLoader::mName [private] |
size_t NifOgre::NIFMeshLoader::mShapeIndex [private] |
NIFMeshLoader::LoaderMap NifOgre::NIFMeshLoader::sLoaders [static, private] |