1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- #ifndef __EFFECTS_CCGRABBER_H__
- #define __EFFECTS_CCGRABBER_H__
- #include "base/CCRef.h"
- #include "platform/CCGL.h"
- NS_CC_BEGIN
- class Texture2D;
- /**
- * @addtogroup _2d
- * @{
- */
- class Grabber : public Ref
- {
- public:
-
- Grabber(void);
-
- ~Grabber(void);
-
- void grab(Texture2D *texture);
-
- void beforeRender(Texture2D *texture);
-
- void afterRender(Texture2D *texture);
- protected:
- GLuint _FBO;
- GLint _oldFBO;
- GLfloat _oldClearColor[4];
- };
- NS_CC_END
- #endif
|