aabb block shape WIP + common refactor

This commit is contained in:
MihailRis
2023-11-30 14:48:38 +03:00
parent 73d87ae451
commit 0c35eeb072
21 changed files with 177 additions and 76 deletions
+4 -4
View File
@@ -8,15 +8,15 @@ class ImageData;
class Texture {
public:
unsigned int id;
uint id;
int width;
int height;
Texture(unsigned int id, int width, int height);
Texture(unsigned char* data, int width, int height, uint format);
Texture(uint id, int width, int height);
Texture(ubyte* data, int width, int height, uint format);
~Texture();
void bind();
void reload(unsigned char* data);
void reload(ubyte* data);
static Texture* from(const ImageData* image);
};