xoreos
0.0.5
|
Public Member Functions | |
ParserContext (const Common::UString &name, const Common::UString &t) | |
~ParserContext () | |
bool | findNode (const Common::UString &name, ModelNode *&node) const |
void | clear () |
Public Attributes | |
Common::SeekableReadStream * | mdl |
Common::UString | mdlName |
State * | state |
bool | isASCII |
std::list< ModelNode * > | nodes |
Common::UString | texture |
uint32 | offModelData |
uint32 | offRawData |
bool | hasPosition |
bool | hasOrientation |
Common::StreamTokenizer * | tokenize |
std::vector< uint32 > | anims |
Definition at line 51 of file model_nwn.h.
Graphics::Aurora::Model_NWN::ParserContext::ParserContext | ( | const Common::UString & | name, |
const Common::UString & | t | ||
) |
Definition at line 126 of file model_nwn.cpp.
References Common::StreamTokenizer::addChunkEnd(), Common::StreamTokenizer::addIgnore(), Common::StreamTokenizer::addSeparator(), Common::UString::c_str(), isASCII, Aurora::kFileTypeMDL, Common::StreamTokenizer::kRuleIgnoreAll, mdl, Common::ReadStream::readUint32LE(), ResMan, Common::SeekableReadStream::seek(), and tokenize.
Graphics::Aurora::Model_NWN::ParserContext::~ParserContext | ( | ) |
Definition at line 147 of file model_nwn.cpp.
void Graphics::Aurora::Model_NWN::ParserContext::clear | ( | ) |
Definition at line 154 of file model_nwn.cpp.
Referenced by Graphics::Aurora::Model_NWN::addState(), and Graphics::Aurora::Model_NWN::newState().
bool Graphics::Aurora::Model_NWN::ParserContext::findNode | ( | const Common::UString & | name, |
ModelNode *& | node | ||
) | const |
Definition at line 163 of file model_nwn.cpp.
References Common::UString::empty().
Referenced by Graphics::Aurora::ModelNode_NWN_ASCII::load().
std::vector<uint32> Graphics::Aurora::Model_NWN::ParserContext::anims |
Definition at line 71 of file model_nwn.h.
Referenced by Graphics::Aurora::Model_NWN::loadASCII().
bool Graphics::Aurora::Model_NWN::ParserContext::hasOrientation |
Definition at line 68 of file model_nwn.h.
Referenced by Graphics::Aurora::ModelNode_NWN_Binary::load(), Graphics::Aurora::Model_NWN::newState(), and Graphics::Aurora::ModelNode_NWN_Binary::readNodeControllers().
bool Graphics::Aurora::Model_NWN::ParserContext::hasPosition |
Definition at line 67 of file model_nwn.h.
Referenced by Graphics::Aurora::ModelNode_NWN_Binary::load(), Graphics::Aurora::Model_NWN::newState(), and Graphics::Aurora::ModelNode_NWN_Binary::readNodeControllers().
bool Graphics::Aurora::Model_NWN::ParserContext::isASCII |
Definition at line 58 of file model_nwn.h.
Referenced by Graphics::Aurora::Model_NWN::Model_NWN(), and ParserContext().
Common::SeekableReadStream* Graphics::Aurora::Model_NWN::ParserContext::mdl |
Definition at line 52 of file model_nwn.h.
Referenced by Graphics::Aurora::ModelNode_NWN_Binary::load(), Graphics::Aurora::ModelNode_NWN_ASCII::load(), Graphics::Aurora::Model_NWN::loadASCII(), Graphics::Aurora::Model_NWN::loadBinary(), Graphics::Aurora::ModelNode_NWN_Binary::loadName(), ParserContext(), Graphics::Aurora::ModelNode_NWN_Binary::readAnim(), Graphics::Aurora::Model_NWN::readAnimBinary(), Graphics::Aurora::ModelNode_NWN_ASCII::readConstraints(), Graphics::Aurora::ModelNode_NWN_ASCII::readFaces(), Graphics::Aurora::ModelNode_NWN_Binary::readMesh(), Graphics::Aurora::ModelNode_NWN_Binary::readNodeControllers(), Graphics::Aurora::ModelNode_NWN_ASCII::readTCoords(), Graphics::Aurora::ModelNode_NWN_ASCII::readVCoords(), Graphics::Aurora::ModelNode_NWN_ASCII::readWeights(), and Graphics::Aurora::Model_NWN::skipAnimASCII().
Common::UString Graphics::Aurora::Model_NWN::ParserContext::mdlName |
Definition at line 54 of file model_nwn.h.
Referenced by Graphics::Aurora::ModelNode_NWN_ASCII::load(), Graphics::Aurora::Model_NWN::loadASCII(), Graphics::Aurora::Model_NWN::loadBinary(), and Graphics::Aurora::ModelNode_NWN_Binary::readMesh().
std::list<ModelNode *> Graphics::Aurora::Model_NWN::ParserContext::nodes |
Definition at line 60 of file model_nwn.h.
Referenced by Graphics::Aurora::Model_NWN::addState(), Graphics::Aurora::ModelNode_NWN_Binary::checkDuplicateNode(), Graphics::Aurora::ModelNode_NWN_Binary::load(), Graphics::Aurora::Model_NWN::loadASCII(), Graphics::Aurora::Model_NWN::loadBinary(), and Graphics::Aurora::Model_NWN::readAnimBinary().
uint32 Graphics::Aurora::Model_NWN::ParserContext::offModelData |
Definition at line 64 of file model_nwn.h.
Referenced by Graphics::Aurora::ModelNode_NWN_Binary::load(), Graphics::Aurora::Model_NWN::loadBinary(), Graphics::Aurora::Model_NWN::readAnimBinary(), and Graphics::Aurora::ModelNode_NWN_Binary::readMesh().
uint32 Graphics::Aurora::Model_NWN::ParserContext::offRawData |
Definition at line 65 of file model_nwn.h.
Referenced by Graphics::Aurora::Model_NWN::loadBinary(), and Graphics::Aurora::ModelNode_NWN_Binary::readMesh().
State* Graphics::Aurora::Model_NWN::ParserContext::state |
Definition at line 56 of file model_nwn.h.
Referenced by Graphics::Aurora::Model_NWN::addState(), Graphics::Aurora::ModelNode_NWN_Binary::checkDuplicateNode(), Graphics::Aurora::ModelNode_NWN_Binary::load(), Graphics::Aurora::ModelNode_NWN_ASCII::load(), Graphics::Aurora::Model_NWN::newState(), Graphics::Aurora::Model_NWN::readAnimBinary(), and Graphics::Aurora::ModelNode_NWN_Binary::readMesh().
Common::UString Graphics::Aurora::Model_NWN::ParserContext::texture |
Definition at line 62 of file model_nwn.h.
Referenced by Graphics::Aurora::ModelNode_NWN_ASCII::load(), and Graphics::Aurora::ModelNode_NWN_Binary::readMesh().
Common::StreamTokenizer* Graphics::Aurora::Model_NWN::ParserContext::tokenize |
Definition at line 70 of file model_nwn.h.
Referenced by Graphics::Aurora::ModelNode_NWN_ASCII::load(), Graphics::Aurora::Model_NWN::loadASCII(), ParserContext(), Graphics::Aurora::ModelNode_NWN_ASCII::readConstraints(), Graphics::Aurora::ModelNode_NWN_ASCII::readFaces(), Graphics::Aurora::ModelNode_NWN_ASCII::readTCoords(), Graphics::Aurora::ModelNode_NWN_ASCII::readVCoords(), Graphics::Aurora::ModelNode_NWN_ASCII::readWeights(), and Graphics::Aurora::Model_NWN::skipAnimASCII().