PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
bitmap_decode_internal.h
1#pragma once
2
3#include <cstdint>
4#include <span>
5#include <string>
6#include <string_view>
7
8namespace pixelbullet
9{
10class Bitmap;
11
12namespace image_internal
13{
14[[nodiscard]] bool decode_bitmap_from_bytes(Bitmap& bitmap, std::span<const std::uint8_t> bytes, std::string_view source_name,
15 std::string_view mime_type = {}, std::string* error_message = nullptr);
16} // namespace image_internal
17} // namespace pixelbullet
Packed RGBA8 CPU bitmap storage.
Definition bitmap.h:19