00001 #ifndef GLFrameTextureBuffer_H 00002 #define GLFrameTextureBuffer_H 00003 00004 #include "glew/glew.h" 00005 00006 class GLFrameTextureBuffer 00007 { 00008 public: 00009 GLFrameTextureBuffer(); 00010 GLuint getBuffer(); 00011 GLuint getTexture(); 00012 void create(GLuint width, GLuint height, GLuint textureColorType, GLuint filterType); 00013 void free(); 00014 00015 private: 00016 GLuint texture, buffer; 00017 }; 00018 00019 #endif // GLFrameTextureBuffer_H