demo buggy heightmap

This commit is contained in:
h4570
2022-08-01 10:04:21 +02:00
parent 47c323ec9e
commit 34b2956c08
12 changed files with 194 additions and 33 deletions
+12
View File
@@ -24,11 +24,23 @@ typedef void* png_colorp;
namespace Tyra {
struct PngPixel3 {
u8 r, g, b;
};
struct PngPixel4 {
u8 r, g, b, a;
};
class PngLoader : public TextureLoader {
public:
PngLoader();
~PngLoader();
inline TextureBuilderData* load(const std::string& fullpath) {
return load(fullpath.c_str());
}
TextureBuilderData* load(const char* fullpath);
private: