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/reference_counted.h" 00011 00013 class Texture : public ReferenceCounted 00014 { 00015 public: 00017 Texture (); 00018 00020 virtual ~Texture (); 00021 00023 void load(const char *file_name); 00024 00026 void bind(); 00027 00028 private: 00029 GLuint texture_id; 00030 std::string file_name; 00031 }; 00032 00033 #endif /* _TEXTURE_H_ */