conworlds
diff src/texture.h @ 13:283cdfa7dda2
added a crapload of code from goat3dgfx
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 24 Aug 2014 09:41:24 +0300 |
parents | bd8202d6d28d |
children |
line diff
1.1 --- a/src/texture.h Sat Aug 23 12:03:29 2014 +0300 1.2 +++ b/src/texture.h Sun Aug 24 09:41:24 2014 +0300 1.3 @@ -23,12 +23,14 @@ 1.4 Image &get_image(); 1.5 const Image &get_image() const; 1.6 1.7 + unsigned int get_type() const; 1.8 unsigned int get_texture_id() const; 1.9 - void bind(int tunit = 0) const; 1.10 1.11 bool load(const char *fname); 1.12 }; 1.13 1.14 +void bind_texture(const Texture *tex, int unit = 0); 1.15 + 1.16 unsigned int next_pow2(unsigned int x); 1.17 1.18 #endif // TEXTURE_H_