Add files via upload
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#ifndef GRAPHICS_TEXTURE_H_
|
||||
#define GRAPHICS_TEXTURE_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
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();
|
||||
|
||||
void bind();
|
||||
void reload(unsigned char* data);
|
||||
};
|
||||
|
||||
extern Texture* load_texture(std::string filename);
|
||||
|
||||
#endif /* GRAPHICS_TEXTURE_H_ */
|
||||
Reference in New Issue
Block a user