diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-10-05 07:00:04 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-10-05 07:00:04 +0200 |
commit | f88411abc7150ed209efcb6180503f0c6f7c8ef6 (patch) | |
tree | 3c5b38c16a125ad26e6aef74c8a8c5cb85d43205 /texture.h | |
parent | 4e5f45f47fa3568f6b081d56f9e7119367fc775c (diff) |
Moved texture loading into base Texture class.
Diffstat (limited to 'texture.h')
-rw-r--r-- | texture.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2,9 +2,15 @@ #define _TEXTURE_H_ #include <stdint.h> +#include <string> class Texture { public: + Texture(); + Texture(const std::string& filename); + + void load(const std::string& filename); + void bind() const; unsigned int tex() const; unsigned int w() const; |