-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,21 @@ | ||
#include <stdint.h> | ||
#include <stdbool.h> | ||
|
||
const uint8_t tex_dxt1_format[2] = {1, 10}; | ||
const uint8_t tex_dxt5_format[2] = {1, 12}; | ||
|
||
enum tex_format { | ||
tex_format_d32 = 0x1, | ||
tex_format_d24s8 = 0x2, | ||
tex_foramt_d24x8 = 0x3, | ||
tex_format_dxt1 = 0xA, | ||
tex_format_dxt5 = 0xC | ||
}; | ||
#define tex_magic "TEX" | ||
|
||
typedef struct { | ||
uint8_t magic[4]; | ||
uint16_t image_width; | ||
uint16_t image_height; | ||
uint8_t tex_format[2]; | ||
uint8_t unk1; | ||
uint8_t tex_format; | ||
uint8_t unk2; | ||
bool has_mipmaps; | ||
} TEX_HEADER; |