gdk-graphics
0a0aef92e917cfbac53dffbc32c295e4de914093
Loading...
Searching...
No Matches
data
include
gdk
graphics
ext
png.h
1
// © Joseph Cameron - MIT License
2
3
#ifndef GDK_GRAPHICS_EXT_PNG_H
4
#define GDK_GRAPHICS_EXT_PNG_H
5
6
#include <
gdk/graphics/texture_data.h
>
7
8
#include <cstddef>
9
#include <memory>
10
#include <span>
11
#include <utility>
12
13
namespace
gdk::graphics::ext {
15
inline
constexpr
std::size_t MOST_PNG_EDGE = 8192;
16
23
[[nodiscard]] std::pair<texture_data::view, std::shared_ptr<texture_data::channel_data>> make_from_png(
24
std::span<const texture_data::encoded_byte> aPNGData,
25
const
texture_data::format aFormat = texture_data::format::rgba);
26
}
27
28
#endif
texture_data.h
what the core takes: decoded channel data and the metadata describing it
Generated by
1.15.0