-
Notifications
You must be signed in to change notification settings - Fork 2
/
mt5parser.h
45 lines (34 loc) · 836 Bytes
/
mt5parser.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef MT5PARSER_H
#define MT5PARSER_H
#include <iostream>
#include <string>
#include "buffer.h"
struct texn {
public:
char name[8];
};
class node;
class textureData;
class mt5 {
public:
mt5();
~mt5();
void readData(buffer *nbuf);
public: //!!MH!! change to private with friend classes
node *m;
textureData *t;
};
class colladaExport {
public:
colladaExport();
~colladaExport();
void exportModel(const char * nfname, mt5 *model);
void expNode(std::ofstream &expFile, node *sm, textureData *td, int level);
std::string getModelName(unsigned long ofs, unsigned long id);
std::string getMeshName(unsigned long ofs);
std::string getTextureName(texn *name);
std::string getTextureFileName(texn *name);
private:
char *fname;
};
#endif // MT5PARSER_H