cubemapper

view src/texture.h @ 0:8fc9e1d3aad2

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 27 Jul 2017 20:36:12 +0300
parents
children d7a29cb7ac8d
line source
1 #ifndef TEXTURE_H_
2 #define TEXTURE_H_
4 #include <gmath/gmath.h>
6 class Texture {
7 private:
8 int width, height;
9 int tex_width, tex_height;
10 unsigned int tex;
11 Mat4 tmat;
13 public:
14 Texture();
15 ~Texture();
17 bool load(const char *fname);
19 const Mat4 &texture_matrix() const;
20 void bind(bool loadmat = true) const;
21 };
23 #endif // TEXTURE_H_