Toast Engine
Loading...
Searching...
No Matches
tga_decode.hpp File Reference

Minimal TGA decoder for UI images. More...

#include <cstdint>
#include <optional>
#include <span>
#include <vector>
Include dependency graph for tga_decode.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ui::TgaImage

Functions

auto ui::decodeTga (std::span< const uint8_t > data) -> std::optional< TgaImage >
 Decodes an uncompressed or RLE true-color TGA (24/32-bit) into RGBA8.

Detailed Description

Minimal TGA decoder for UI images.

Author
Xein
Date
17 Jul 2026

Function Documentation

◆ decodeTga()

auto ui::decodeTga ( std::span< const uint8_t > data) -> std::optional< TgaImage >

Decodes an uncompressed or RLE true-color TGA (24/32-bit) into RGBA8.

Grayscale and color-mapped images are not supported