Implemented Mesh and Node Name plugins.

This commit is contained in:
Angelo Papenhoff
2014-12-19 16:24:29 +01:00
parent 02db884c0c
commit 37e027b17c
7 changed files with 220 additions and 24 deletions

21
rw.h
View File

@ -36,6 +36,22 @@ struct Material : PluginBase<Material>
uint32 streamGetSize(void);
};
struct Mesh
{
uint16 *indices;
uint32 numIndices;
Material *material;
};
struct MeshHeader
{
uint32 flags;
uint16 numMeshes;
// RW has uint16 serialNum here
uint32 totalIndices;
Mesh *mesh; // RW has a byte offset here
};
struct MorphTarget
{
float32 boundingSphere[4];
@ -60,6 +76,8 @@ struct Geometry : PluginBase<Geometry>, Object
int32 numMaterials;
Material **materialList;
MeshHeader *meshHeader;
Geometry(void);
Geometry(Geometry *g);
~Geometry(void);
@ -159,3 +177,6 @@ private:
};
}
void registerNodeNamePlugin(void);
void registerMeshPlugin(void);