cubemapper
view src/texture.h @ 2:e308561f9889
correct cubemap export and visualization
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 28 Jul 2017 13:24:34 +0300 |
parents | 8fc9e1d3aad2 |
children | 2bfafdced01a |
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 int get_width() const;
18 int get_height() const;
20 bool load(const char *fname);
22 const Mat4 &texture_matrix() const;
23 void bind(bool loadmat = true) const;
24 };
26 #endif // TEXTURE_H_