25 #ifndef GRAPHICS_AURORA_MODEL_NWN_H 26 #define GRAPHICS_AURORA_MODEL_NWN_H 32 class SeekableReadStream;
33 class StreamTokenizer;
40 class ModelNode_NWN_Binary;
41 class ModelNode_NWN_ASCII;
116 uint32 count, std::vector<float> &data);
149 void readFloats(
const std::vector<Common::UString> &strings,
164 #endif // GRAPHICS_AURORA_MODEL_NWN_BINARY_H Model_NWN(const Common::UString &name, ModelType type=kModelTypeObject, const Common::UString &texture="", ModelCache *modelCache=0)
void loadSuperModel(ModelCache *modelCache)
std::vector< uint32 > vIB
void loadBinary(ParserContext &ctx)
std::vector< uint32 > vIC
std::vector< uint32 > smooth
A class holding an UTF-8 string.
void readFaces(Model_NWN::ParserContext &ctx, Mesh &mesh)
std::vector< Common::UString > textures
A 3D model in the NWN MDL format.
A real object in the game world.
void readWeights(Model_NWN::ParserContext &ctx, uint32 n)
void readConstraints(Model_NWN::ParserContext &ctx, uint32 n)
void readAnimBinary(ParserContext &ctx, uint32 offset)
void processMesh(ModelNode_NWN_ASCII::Mesh &mesh)
void populateDefaultAnimations()
void readNodeControllers(Model_NWN::ParserContext &ctx, uint32 offset, uint32 count, std::vector< float > &data)
std::vector< uint32 > tIC
void load(Model_NWN::ParserContext &ctx, const Common::UString &type, const Common::UString &name)
void readTCoords(Model_NWN::ParserContext &ctx, Mesh &mesh)
void addState(ParserContext &ctx)
ModelType
The display type of a model.
void newState(ParserContext &ctx)
void readAnim(Model_NWN::ParserContext &ctx)
std::vector< uint32 > vIA
A node within a 3D model.
void load(Model_NWN::ParserContext &ctx)
void checkDuplicateNode(Model_NWN::ParserContext &ctx, ModelNode_NWN_Binary *newNode)
static Common::UString loadName(Model_NWN::ParserContext &ctx)
std::vector< uint32 > tIA
std::list< ModelNode * > nodes
Common::StreamTokenizer * tokenize
ParserContext(const Common::UString &name, const Common::UString &t)
void readMesh(Model_NWN::ParserContext &ctx)
void readVCoords(Model_NWN::ParserContext &ctx, Mesh &mesh)
bool findNode(const Common::UString &name, ModelNode *&node) const
void skipAnimASCII(ParserContext &ctx)
std::vector< uint32 > anims
void loadASCII(ParserContext &ctx)
std::vector< uint32 > mat
void readFloats(const std::vector< Common::UString > &strings, float *floats, uint32 n, uint32 start)
std::vector< uint32 > tIB
void readAnimASCII(ParserContext &ctx)
Interface for a seekable & readable data stream.
ModelNode_NWN_ASCII(Model &model)
ModelNode_NWN_Binary(Model &model)
Common::SeekableReadStream * mdl