mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
add in-memory png loading implementation
This commit is contained in:
parent
f262c0f297
commit
3dc776c90d
2 changed files with 124 additions and 9 deletions
|
|
@ -3,10 +3,13 @@
|
|||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "typedefs.hpp"
|
||||
|
||||
class Texture;
|
||||
class ImageData;
|
||||
|
||||
namespace png {
|
||||
std::unique_ptr<ImageData> load_image_inmemory(const ubyte* bytes, size_t size);
|
||||
std::unique_ptr<ImageData> load_image(const std::string& filename);
|
||||
void write_image(const std::string& filename, const ImageData* image);
|
||||
std::unique_ptr<Texture> load_texture(const std::string& filename);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue