aboutsummaryrefslogtreecommitdiff
path: root/zetsubou/tpl.h
diff options
context:
space:
mode:
authorAlex Marshall <SquidMan72@gmail.com>2009-03-18 21:33:47 -0700
committerAlex Marshall <SquidMan72@gmail.com>2009-03-18 21:33:47 -0700
commit33dbada8f9c9fc97222ee3b0bfa0defc1f554c9f (patch)
tree4bd68e30a954d3be0248b1a2c364554df1bbbf4b /zetsubou/tpl.h
parentf8211a90f74d874f144a38a96e10923e546ed270 (diff)
Added writing to Zetsubou. Next up is PNGs or something. Supports many color formats.
Diffstat (limited to '')
-rw-r--r--zetsubou/tpl.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/zetsubou/tpl.h b/zetsubou/tpl.h
index f7c6476..633e60e 100644
--- a/zetsubou/tpl.h
+++ b/zetsubou/tpl.h
@@ -39,6 +39,14 @@
// CMP (S3TC compressed, 2x2 blocks of 4x4 tiles)
#define TPL_FORMAT_CMP 14
+// Normal Min Filter value. (Unknown value)
+#define TPL_MIN_FILTER_NORMAL 0x00010000
+// Clamp Min Filter value? (Unknown value)
+#define TPL_MIN_FILTER_CLAMP 0x00000001
+// Normal Mag Filter value. (Unknown value)
+#define TPL_MAG_FILTER_NORMAL 0x00010000
+// Clamp Mag Filter value? (Unknown value)
+#define TPL_MAG_FILTER_CLAMP 0x00000001
typedef struct texthead
{
@@ -46,15 +54,15 @@ typedef struct texthead
u16 width; // Width of the TPL image.
u32 format; // Format of the TPL image. (Use #defines pl0x.)
u32 offs; // Offset to actual image data.
- u32 wrap_s; // Wrap S?
- u32 wrap_t; // Wrap T?
- u32 min; // Min?
- u32 mag; // Mag?
+ u32 wrap_s; // Wrap S.
+ u32 wrap_t; // Wrap T.
+ u32 min; // Min filter.
+ u32 mag; // Mag filter.
f32 lod_bias; // LOD Bias?
u8 edge_lod; // Edge LOD?
u8 min_lod; // Minimum LOD?
u8 max_lod; // Maximum LOD?
- u8 unpacked; // Unpacked (Size?)
+ u8 unpacked; // Unpacked?
} TPL_header;
typedef struct bmphead
@@ -82,5 +90,6 @@ typedef struct bmpv3infohead
} TPL_BMPInfoHeaderV3;
int TPL_ConvertToBMP(u8* tplbuf, u32 tplsize, char basename[]);
+int TPL_ConvertFromBMPs(const u32 count, char *bmps[], char outname[], u32 format);
#endif //_TPL_H_