Toast Engine
Toggle main menu visibility
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
15
namespace
ui {
16
17
struct
TgaImage
{
18
uint32_t width = 0;
19
uint32_t height = 0;
20
std::vector<uint8_t> pixels;
21
};
22
28
auto
decodeTga(std::span<const uint8_t> data) -> std::optional<TgaImage>;
29
30
}
ui::TgaImage
Definition
tga_decode.hpp:17
engine
src
toast
ui
tga_decode.hpp
Generated by
1.17.0