summaryrefslogtreecommitdiff
path: root/gfx/models/tga.h
blob: 1f400ef509c29143a55c4c3d2b3bf48164e76f6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#pragma once

#include <cstdint>
#include <glm/vec2.hpp>

struct TGAHead {
	uint8_t idLength {}, colorMapType {}, format {};
	uint16_t __attribute__((packed)) colorMapFirst {}, colorMapLength {};
	uint8_t colorMapEntrySize {};
	glm::vec<2, uint16_t> origin {}, size {};
	uint8_t pixelDepth {};
	uint8_t descriptor {};
};
static_assert(sizeof(TGAHead) == 18);