summaryrefslogtreecommitdiff
path: root/gfx/models/tga.h
blob: 52db220510a023af7f2d6e4a6494f5f19fbba6a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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);