25 #ifndef GRAPHICS_AURORA_MODEL_JADE_H 26 #define GRAPHICS_AURORA_MODEL_JADE_H 32 class SeekableReadStream;
57 std::list<ModelNode_Jade *>
nodes;
69 std::vector<Common::UString>
names;
92 const std::vector<uint32> &offsets,
uint32 offset,
93 std::vector<Common::UString> &strings);
151 #endif // GRAPHICS_AURORA_MODEL_JADE_H
void unfoldFaces(std::vector< uint16 > &indices, uint32 meshType)
Unfolds triangle strips / fans into triangle lists.
A 3D model in the Jade Empire MDL/MDX format.
Common::SeekableReadStream * mdl
A class holding an UTF-8 string.
Common::SeekableReadStream * mdx
void readMesh(Model_Jade::ParserContext &ctx)
void readPlainIndices(Common::SeekableReadStream &stream, std::vector< uint16 > &indices, uint32 offset, uint32 count)
void readStrings(Common::SeekableReadStream &mdl, const std::vector< uint32 > &offsets, uint32 offset, std::vector< Common::UString > &strings)
A real object in the game world.
void readChunkedIndices(Common::SeekableReadStream &stream, std::vector< uint16 > &indices, uint32 offset, uint32 count)
JadeMaterialData _jadeMaterialData
ParserContext(const Common::UString &name, const Common::UString &t)
void unfoldTriangleStrip(std::vector< uint16 > &indices)
ModelNode_Jade(Model &model)
std::vector< Common::UString > textures
Model_Jade(const Common::UString &name, ModelType type=kModelTypeObject, const Common::UString &texture="")
std::vector< float > vertices
ModelType
The display type of a model.
void createMesh(Model_Jade::ParserContext &ctx)
std::vector< std::vector< float > > texCoords
void load(Model_Jade::ParserContext &ctx)
A node within a 3D model.
void readMaterialTextures(uint32 materialID, std::vector< Common::UString > &textures)
Opens the resource for the materialID and parses it to return the 4 normal textures.
std::vector< Common::UString > names
void load(ParserContext &ctx)
std::vector< uint16 > indices
float bumpCoordMultiplier
std::list< ModelNode_Jade * > nodes
void unfoldTriangleFan(std::vector< uint16 > &indices)
void newState(ParserContext &ctx)
Interface for a seekable & readable data stream.
void addState(ParserContext &ctx)
float terrainCoordMultiplier