00001 #ifndef _TEXTURE_H_
00002 #define _TEXTURE_H_
00003
00004 #ifdef _WIN32
00005 #include <windows.h>
00006 #endif
00007
00008 #include <string>
00009 #include <GL/gl.h>
00010 #include "cglib/object.h"
00011
00013 class Texture : public Object
00014 {
00015 public:
00017 Texture ();
00018
00020 virtual ~Texture ();
00021
00023 void load(const char *file_name);
00024
00026 void bind();
00027
00029 virtual void accept(Visitor *visitor);
00030
00031 private:
00032 GLuint texture_id;
00033 std::string file_name;
00034 };
00035
00036 #endif