mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
18 lines
515 B
C++
18 lines
515 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
#include "typedefs.hpp"
|
|
#include "util/Buffer.hpp"
|
|
|
|
class Texture;
|
|
class ImageData;
|
|
|
|
namespace png {
|
|
std::unique_ptr<ImageData> load_image(const ubyte* bytes, size_t size);
|
|
void write_image(const std::string& filename, const ImageData* image);
|
|
util::Buffer<ubyte> encode_image(const ImageData& image);
|
|
std::unique_ptr<Texture> load_texture(const ubyte* bytes, size_t size);
|
|
std::unique_ptr<Texture> load_texture(const std::string& filename);
|
|
}
|