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

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

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

static_assert(sizeof(TGAHead) == 18);