forked from justtails/OGFViewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOGFLoader.h
68 lines (58 loc) · 753 Bytes
/
OGFLoader.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#pragma once
#include "OGFModel.h"
struct Chunk2564
{
int header[3]; //1 44 2564
float info[10]; //data chunk
};
struct Chunk1284
{
int header[3]; //1 44 284
char data[40];
};
struct OGFHeader
{
int count;
int size;
char modelname[1024];
int hz1; //9
int pos1;
int hz2; //1638
int pos2;
int hz3; //0
int pos3;
int hz4; //1630
int pos4;
};
struct Bone
{
int id;
char bone[8192];
};
struct structF
{
int f[2];
};
struct TextData
{
int type;
int size;
char data[1024];
};
struct Indices
{
int count;
unsigned short *idx;
};
struct OGFVertex
{
float x,y,z;
float t1,t2;
float aa;
char flag;
float t[2];
float b[2];
float s[2];
float d[2];
};
OGFModel *Load(char *fileName,const std::string &pathToTextures);