From 8217e19e42dbfbfe9b56ac0174699ea9c36ba667 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Fri, 2 Apr 2021 15:12:37 +0000 Subject: add texture routines --- src/graphics/Texture.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/graphics/Texture.hpp (limited to 'src/graphics/Texture.hpp') diff --git a/src/graphics/Texture.hpp b/src/graphics/Texture.hpp new file mode 100644 index 0000000..02298f2 --- /dev/null +++ b/src/graphics/Texture.hpp @@ -0,0 +1,16 @@ +#ifndef ENGINE_TEXTURE_H +#define ENGINE_TEXTURE_H + +class Texture { + int target; + unsigned int texture_id; +public: + Texture(int type); + ~Texture(); + + int LoadImage(const char *path); + int LoadImage(const char **paths); + void Bind(); +}; + +#endif /* ENGINE_TEXTURE_H */ -- cgit v1.2.3-18-g5258