mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-21 22:34:32 +00:00
23 lines
379 B
C++
23 lines
379 B
C++
// SPDX-License-Identifier: MIT
|
|
|
|
#ifndef RGBDS_GFX_PNG_HPP
|
|
#define RGBDS_GFX_PNG_HPP
|
|
|
|
#include <stdint.h>
|
|
#include <streambuf>
|
|
#include <vector>
|
|
|
|
#include "gfx/rgba.hpp"
|
|
|
|
struct Png {
|
|
uint32_t width = 0;
|
|
uint32_t height = 0;
|
|
std::vector<Rgba> pixels{};
|
|
std::vector<Rgba> palette{};
|
|
|
|
Png() {}
|
|
Png(char const *filename, std::streambuf &file);
|
|
};
|
|
|
|
#endif // RGBDS_GFX_PNG_HPP
|