root/trunk/contrib/vmap_extractor_v2/vmapextract/model.h

Revision 2, 1.0 kB (checked in by yumileroy, 17 years ago)

[svn] * Proper SVN structure

Original author: Neo2003
Date: 2008-10-02 16:23:55-05:00

Line 
1#ifndef MODEL_H
2#define MODEL_H
3
4#include "vec3d.h"
5#include "mpq.h"
6#include "modelheaders.h"
7//#include "quaternion.h"
8#include <vector>
9
10class Model;
11class WMOInstance;
12
13Vec3D fixCoordSystem(Vec3D v);
14
15
16
17
18class Model
19{ 
20public:
21        ModelHeader header;
22        ModelAnimation *anims;
23        int *globalSequences;
24       
25public:
26        bool animGeometry,animTextures,animBones;
27        bool animated;
28
29        bool isAnimated(MPQFile &f);
30        ModelVertex *origVertices;
31        Vec3D *vertices, *normals;
32        uint16 *indices;
33        size_t nIndices;
34       
35        bool open();
36        bool ConvertToVMAPModel(char * outfilename);
37
38public:
39
40        bool ok;
41        bool ind;
42
43        float rad;
44        float trans;
45        bool animcalc;
46        int anim, animtime;
47
48        Model(std::string &filename);
49        ~Model();
50       
51private:
52        std::string filename;
53        char outfilename;
54};
55
56class ModelInstance
57{
58public:
59        Model *model;
60
61        int id;
62
63        Vec3D pos, rot;
64        unsigned int d1, scale;
65
66        float frot,w,sc;
67
68        int light;
69        Vec3D ldir;
70        Vec3D lcol;
71
72        ModelInstance() {}
73        ModelInstance(MPQFile &f,const char* ModelInstName,const char*MapName, FILE *pDirfile);
74
75};
76
77#endif
Note: See TracBrowser for help on using the browser.