diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2019-09-17 13:55:22 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2019-09-17 13:55:22 -0400 |
commit | ceda39e4bd2e3a7794f0cb4f96df1de6ebee47d2 (patch) | |
tree | ba5451b6dcade324114d145d526e7c5b5465689a /src/texture.hpp | |
parent | dbb26902ed54ce308fdcec4697616e152f2894fd (diff) | |
parent | 0236eb7f6391c9d925dcaaddb8cb01ecfb7d5e55 (diff) |
update with master; using VBOs for fonts
Diffstat (limited to 'src/texture.hpp')
-rw-r--r-- | src/texture.hpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/texture.hpp b/src/texture.hpp index 16987f8..3daebbd 100644 --- a/src/texture.hpp +++ b/src/texture.hpp @@ -21,18 +21,31 @@ #define TEXTURE_HPP_ #include <soil/SOIL.h> + +#include <sol/sol.hpp> + +#include <GL/glew.h> #include <SDL2/SDL_opengl.h> +#include <glm/glm.hpp> + #include <string> class Texture { private: + void loadFromString(std::string); public: - GLuint tex; + GLuint tex = 0; + + glm::vec2 offset = glm::vec2(0); + glm::vec2 size = glm::vec2(1); + int width; int height; + Texture() {}; Texture(std::string); + Texture(sol::object); }; #endif//TEXTURE_HPP_ |