mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
22 lines
359 B
C++
22 lines
359 B
C++
// SPDX-License-Identifier: MIT
|
|
|
|
#ifndef RGBDS_GFX_PNG_HPP
|
|
#define RGBDS_GFX_PNG_HPP
|
|
|
|
#include <fstream>
|
|
#include <stdint.h>
|
|
#include <vector>
|
|
|
|
#include "gfx/rgba.hpp"
|
|
|
|
struct Png {
|
|
uint32_t width, height;
|
|
std::vector<Rgba> pixels{};
|
|
std::vector<Rgba> palette{};
|
|
|
|
Png() {}
|
|
Png(char const *filename, std::streambuf &file);
|
|
};
|
|
|
|
#endif // RGBDS_GFX_PNG_HPP
|