mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11:51 +00:00
leaks fix (valgrind full leak check) in world
This commit is contained in:
parent
f8289a5d78
commit
3b4fc2dfea
10 changed files with 215 additions and 222 deletions
16
src/coders/png.hpp
Normal file
16
src/coders/png.hpp
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef CODERS_PNG_HPP_
|
||||
#define CODERS_PNG_HPP_
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
class Texture;
|
||||
class ImageData;
|
||||
|
||||
namespace png {
|
||||
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);
|
||||
}
|
||||
|
||||
#endif // CODERS_PNG_HPP_
|
||||
Loading…
Add table
Add a link
Reference in a new issue