00001 #ifndef GLTexture1D_H 00002 #define GLTexture1D_H 00003 00004 #include "glew/glew.h" 00005 00006 class GLTexture1D 00007 { 00008 public: 00009 GLTexture1D(); 00010 ~GLTexture1D(); 00011 GLuint getTexture(); 00012 GLuint getWidth(); 00013 void setTypes(GLuint textureColorType, GLuint filterType); 00014 void create(GLuint width); 00015 bool updateSubImage(GLuint xOffset, GLuint width, GLuint format, GLuint type, void* data); 00016 void free(); 00017 00018 private: 00019 GLuint texture, width; 00020 GLint textureColorType, filterType; 00021 }; 00022 00023 #endif // GLTexture1D_H