summaryrefslogtreecommitdiff
path: root/texture.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-10-05 07:00:04 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-10-05 07:00:04 +0200
commitf88411abc7150ed209efcb6180503f0c6f7c8ef6 (patch)
tree3c5b38c16a125ad26e6aef74c8a8c5cb85d43205 /texture.h
parent4e5f45f47fa3568f6b081d56f9e7119367fc775c (diff)
Moved texture loading into base Texture class.
Diffstat (limited to 'texture.h')
-rw-r--r--texture.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/texture.h b/texture.h
index ca7fef1..9fea06f 100644
--- a/texture.h
+++ b/texture.h
@@ -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;