mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
aabb block shape WIP + common refactor
This commit is contained in:
parent
73d87ae451
commit
0c35eeb072
21 changed files with 177 additions and 76 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue