25 #ifndef GRAPHICS_AURORA_MODEL_KOTOR_H 26 #define GRAPHICS_AURORA_MODEL_KOTOR_H 32 class SeekableReadStream;
39 class ModelNode_KotOR;
57 std::list<ModelNode_KotOR *>
nodes;
67 std::vector<Common::UString>
names;
89 const std::vector<uint32> &offsets,
uint32 offset,
90 std::vector<Common::UString> &strings);
109 uint32 count, std::vector<float> &dataFloat, std::vector<uint32> &dataInt);
111 uint16 dataIndex, std::vector<float> &data);
113 uint16 dataIndex, std::vector<float> &dataFloat, std::vector<uint32> &dataInt);
122 #endif // GRAPHICS_AURORA_MODEL_KOTOR_H
void newState(ParserContext &ctx)
Model_KotOR(const Common::UString &name, bool kotor2, bool xbox, ModelType type=kModelTypeObject, const Common::UString &texture="", ModelCache *modelCache=0)
A class holding an UTF-8 string.
void makeBoneNodeMap()
Map bone indices to model node references for better peformance.
bool readAnim(ParserContext &ctx, uint32 offset)
A 3D model in the NWN binary MDL format.
A real object in the game world.
Common::SeekableReadStream * mdl
ParserContext(const Common::UString &name, const Common::UString &t, bool k2, bool x)
void load(Model_KotOR::ParserContext &ctx)
ModelType
The display type of a model.
void addState(ParserContext &ctx)
void loadSuperModel(ModelCache *modelCache, bool kotor2, bool xbox)
void readStrings(Common::SeekableReadStream &mdl, const std::vector< uint32 > &offsets, uint32 offset, std::vector< Common::UString > &strings)
A node within a 3D model.
void readNodeControllers(Model_KotOR::ParserContext &ctx, uint32 offset, uint32 count, std::vector< float > &dataFloat, std::vector< uint32 > &dataInt)
Common::SeekableReadStream * mdx
void readPositionController(uint8 columnCount, uint16 rowCount, uint16 timeIndex, uint16 dataIndex, std::vector< float > &data)
std::vector< Common::UString > names
void readOrientationController(uint8 columnCount, uint16 rowCount, uint16 timeIndex, uint16 dataIndex, std::vector< float > &dataFloat, std::vector< uint32 > &dataInt)
void readSkin(Model_KotOR::ParserContext &ctx)
void readMesh(Model_KotOR::ParserContext &ctx)
Interface for a seekable & readable data stream.
void load(ParserContext &ctx)
ModelNode_KotOR(Model &model)
std::list< ModelNode_KotOR * > nodes