#include <model.h>
ModelInstance::ModelInstance |
( |
| ) |
|
|
inline |
uint32 id
Definition: model.h:56
uint16 flags
Definition: model.h:58
float sc
Definition: model.h:59
uint16 scale
Definition: model.h:58
163 FILE*
input = fopen(tempname,
"r+b");
173 int count = fread(&nVertices,
sizeof (
int), 1, input);
176 if (count != 1 || nVertices == 0)
181 if (tileX == 65 && tileY == 65)
185 fwrite(&mapID,
sizeof(
uint32), 1, pDirfile);
186 fwrite(&tileX,
sizeof(
uint32), 1, pDirfile);
187 fwrite(&tileY,
sizeof(
uint32), 1, pDirfile);
188 fwrite(&flags,
sizeof(
uint32), 1, pDirfile);
189 fwrite(&adtId,
sizeof(
uint16), 1, pDirfile);
190 fwrite(&
id,
sizeof(
uint32), 1, pDirfile);
191 fwrite(&
pos,
sizeof(
float), 3, pDirfile);
192 fwrite(&
rot,
sizeof(
float), 3, pDirfile);
193 fwrite(&
sc,
sizeof(
float), 1, pDirfile);
194 uint32 nlen=strlen(ModelInstName);
195 fwrite(&nlen,
sizeof(
uint32), 1, pDirfile);
196 fwrite(ModelInstName,
sizeof(
char), nlen, pDirfile);
Definition: vmapexport.h:26
static Vec3D fixCoords(const Vec3D &v)
Definition: wmo.h:43
Vec3D pos
Definition: model.h:57
uint32 id
Definition: model.h:56
std::string sprintf(CStringRef format, ArgList args)
Definition: format.h:3096
Vec3D rot
Definition: model.h:57
uint32_t uint32
Definition: Define.h:150
uint16_t uint16
Definition: Define.h:151
uint16 flags
Definition: model.h:58
float sc
Definition: model.h:59
#define SEEK_SET
Definition: zconf.h:475
size_t read(void *dest, size_t bytes)
Definition: mpqfile.cpp:52
const char * szWorkDirWmo
Definition: vmapexport.cpp:81
uint16 scale
Definition: model.h:58
Definition: vmapexport.h:27
The documentation for this class was generated from the following files: