-
Notifications
You must be signed in to change notification settings - Fork 5
/
vgeo_idx.bt
50 lines (42 loc) · 1.06 KB
/
vgeo_idx.bt
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
//------------------------------------------------
//--- 010 Editor v11.0.1 Binary Template
//
// File: static.vgeo_idx
// Authors: Xsear
// File Mask: .vgeo_idx
//------------------------------------------------
struct HEADER
{
int version; // 3, 1 or 2.
if (version == 3) {
byte pageUsageBits; // 1
}
};
struct PAGEINFO(int version)
{
uint64 startOffset;
uint crc32;
ushort numVerts;
if (numVerts > 0 && version != 1) {
ushort sectionSize; // Length of the page data including page usage byte
byte vertIndexBitfield[256]; // Each set bit is the index of each vert on the page
}
};
struct TEXTUREINFO
{
uint hash1;
uint hash2;
uint hash3;
};
struct FILE
{
HEADER header;
int pageCount;
PAGEINFO pageInfo(header.version)[pageCount]<optimize=false>;
int textureCount;
TEXTUREINFO textureInfo[textureCount];
if (header.version == 1) {
uint otherCount; // more crcs?
uint otherData[otherCount];
}
} file;