3 #define __STORMLIB_SELF__
4 #define TILESIZE (533.33333f)
5 #define CHUNKSIZE ((TILESIZE) / 16.0f)
17 typedef unsigned char uint8
;
18 typedef unsigned short uint16
;
19 typedef unsigned int uint32
;
25 int nTextures
, nGroups
, nP
, nLights
, nModels
, nDoodads
, nDoodadSets
, RootID
;
30 WMORoot(std::string
&filename
);
34 bool ConvertToVMAPRootWmo(FILE *output
);
45 int offsize
,flag
,flag1
,Xid
,Xid2
,Xid3
,zero1
,Xflag
,nTexture
,GroupID
;
46 int mopy_size
,moba_size
,hlq_xverts
,hlq_yverts
;
47 int MopyEx_size
,IndexExTr_size
,LiquEx_size
;
48 unsigned int nVertices
; // number when loaded
49 int nTriangles
; // number when loaded
68 WMOGroup(std::string
&filename
);
72 int ConvertToVMAPGroupWmo(FILE *output
, bool pPreciseVectorData
);
80 struct WMOLiquidHeader
82 int xverts
, yverts
, xtiles
, ytiles
;
91 static std::set
<int> ids
;
98 Vec3D pos2
, pos3
, rot
;
102 WMOInstance(MPQFile
&f
,const char* WmoInstName
,const char*MapName
, FILE *pDirfile
);