minor refactor
This commit is contained in:
@@ -8,19 +8,19 @@ class ImageData;
|
||||
|
||||
class Texture {
|
||||
public:
|
||||
uint id;
|
||||
int width;
|
||||
int height;
|
||||
Texture(uint id, int width, int height);
|
||||
Texture(ubyte* data, int width, int height, uint format);
|
||||
~Texture();
|
||||
uint id;
|
||||
int width;
|
||||
int height;
|
||||
Texture(uint id, int width, int height);
|
||||
Texture(ubyte* data, int width, int height, uint format);
|
||||
~Texture();
|
||||
|
||||
void bind();
|
||||
void reload(ubyte* data);
|
||||
void bind();
|
||||
void reload(ubyte* data);
|
||||
|
||||
ImageData* readData();
|
||||
|
||||
static Texture* from(const ImageData* image);
|
||||
static Texture* from(const ImageData* image);
|
||||
};
|
||||
|
||||
#endif /* GRAPHICS_TEXTURE_H_ */
|
||||
|
||||
Reference in New Issue
Block a user