-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMH1 FTex-APX.bt
59 lines (54 loc) · 1.08 KB
/
MH1 FTex-APX.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
51
52
53
54
55
56
57
58
59
//------------------------------------------------
//--- 010 Editor v9.0.2 Binary Template
//
// File:
// Authors:
// Version:
// Purpose:
// Category:
// File Mask:
// ID Bytes:
// History:
//------------------------------------------------
local int i;
typedef struct(uint count){
byte Pixel[count];
}ImageData;
typedef struct{
byte red;
byte green;
byte blue;
byte alpha;
}RGBA;
typedef struct(uint count){
for(i=0;i<count;i++){
RGBA rgbPalette;
};
}Palette;
typedef struct{
uint fileSize;
uint totalPixel;
uint paletteLength;//divided by 4
uint16 bitDepth;
uint16 imageWidth;
uint16 imageHeight;
uint16 paletteIndex;
uint32 specialUnkn;
uint64 NULL0;
if(bitDepth == 4){
ImageData Image(totalPixel);
}
else{
ImageData Image(totalPixel);
};
Palette palette(paletteLength/4);
}APXFile;
typedef struct{
uint imageCount;
for(i=0;i<imageCount;i++){
uint imageOffset;
uint imageSize;
};
APXFile APX[imageCount]<optimize=false>;
}FTEX;
FTEX APX;