#ifndef TEST_FBO_SWAP_H #define TEST_FBO_SWAP_H #define ROXLU_USE_MATH #define ROXLU_USE_OPENGL #include #include class TestFboSwap { public: TestFboSwap(); ~TestFboSwap(); int init(); void activate(); void swap(); GLuint getReadTexture(); /* texture from which we can read; so which isn't rendered into. */ private: int createFbo(GLuint& fboOut, GLuint& texOut); public: GLuint fbo[2]; GLuint tex[2]; int dx; }; #endif