Added graphics/ImageData class
This commit is contained in:
@@ -3,17 +3,21 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
class ImageData;
|
||||
|
||||
class Texture {
|
||||
public:
|
||||
unsigned int id;
|
||||
int width;
|
||||
int height;
|
||||
Texture(unsigned int id, int width, int height);
|
||||
Texture(unsigned char* data, int width, int height);
|
||||
Texture(unsigned char* data, int width, int height, uint format);
|
||||
~Texture();
|
||||
|
||||
void bind();
|
||||
void reload(unsigned char* data);
|
||||
|
||||
static Texture* from(const ImageData* image);
|
||||
};
|
||||
|
||||
#endif /* GRAPHICS_TEXTURE_H_ */
|
||||
|
||||
Reference in New Issue
Block a user