Add files via upload

This commit is contained in:
MihailRis 2021-04-25 16:08:48 +03:00 • committed by GitHub
commit e1cdcf01e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
49 changed files with 2866 additions and 0 deletions

21
src/graphics/Texture.h Normal file
View file

@ -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_ */