diff options
| author | Benoit Jacquier <benoit.jacquier@gmail.com> | 2022-08-27 19:30:15 +0200 |
|---|---|---|
| committer | Benoit Jacquier <benoit.jacquier@gmail.com> | 2022-08-27 19:30:34 +0200 |
| commit | 934131abf86a03e98aa924fc93720e68729f317e (patch) | |
| tree | c1e9b69ef37a643db1edfef96a004767b40b8a39 /core/image/common.odin | |
| parent | 4e5337412a4e46fb26250f8adf1d019ddd8366c7 (diff) | |
Add RLE supports for TGA loader
Diffstat (limited to 'core/image/common.odin')
| -rw-r--r-- | core/image/common.odin | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/image/common.odin b/core/image/common.odin index a627fa68b..f0cb491a2 100644 --- a/core/image/common.odin +++ b/core/image/common.odin @@ -378,10 +378,15 @@ QOI_Info :: struct { header: QOI_Header, } +TGA_Data_Type :: enum u8 { + Uncompressed_RGB = 2, + Compressed_RBB = 10 +} + TGA_Header :: struct #packed { id_length: u8, color_map_type: u8, - data_type_code: u8, + data_type_code: TGA_Data_Type, color_map_origin: u16le, color_map_length: u16le, color_map_depth: u8, |