Toast Engine
Loading...
Searching...
No Matches
tga_decode.hpp
Go to the documentation of this file.
1
8
9#pragma once
10#include <cstdint>
11#include <optional>
12#include <span>
13#include <vector>
14
15namespace ui {
16
17struct TgaImage {
18 uint32_t width = 0;
19 uint32_t height = 0;
20 std::vector<uint8_t> pixels;
21};
22
28auto decodeTga(std::span<const uint8_t> data) -> std::optional<TgaImage>;
29
30}
Definition tga_decode.hpp:17