CCGrabber
#ifndef __EFFECTS_CCGRABBER_H__
#define __EFFECTS_CCGRABBER_H__
#include "CCConfiguration.h"
#include "cocoa/CCObject.h"
#include "CCGL.h"
NS_CC_BEGIN
class CCTexture2D;
/**
* @addtogroup effects
* @{
*/
/** FBO class that grabs the the contents of the screen */
class CCGrabber : public CCObject
{
public:
CCGrabber(void);
~CCGrabber(void);
void grab(CCTexture2D *pTexture);
void beforeRender(CCTexture2D *pTexture);
void afterRender(CCTexture2D *pTexture);
protected:
GLuint m_FBO;
GLint m_oldFBO;
GLfloat m_oldClearColor[4];
};
// end of effects group
/// @}
NS_CC_END
#endif // __EFFECTS_CCGRABBER_H__