]> git.lizzy.rs Git - dragonblocks-bedrock.git/blob - src/texture.h
Some structure Changes
[dragonblocks-bedrock.git] / src / texture.h
1 #ifndef _TEXTURE_H_
2 #define _TEXTURE_H_
3
4 #include <png.h>
5 #include <string>
6
7 class Texture{
8         public:
9                 int width;
10                 int height;
11                 void draw(int, int, int, int);
12                 Texture(std::string, bool);
13         private:
14                 png_byte color_type;
15                 png_byte bit_depth;
16                 png_bytep *row_pointers;
17                 bool dummyimage;
18                 bool translucent;
19 };
20 #endif