FBO class that grabs the the contents of the screen. More...
#include <CCGrabber.h>
Public Member Functions | |
Grabber (void) | |
Constructor. More... | |
Grabber () | |
Constructor. More... | |
~Grabber (void) | |
Destructor. More... | |
void | grab (Texture2D *texture) |
Init the grab structure, will set the texture as the FBO color attachment. More... | |
void | beforeRender (Texture2D *texture) |
Begin capture the screen, which will save the old FBO, clear color, and set the new FBO, clear the background. More... | |
void | afterRender (Texture2D *texture) |
After capture, will reset the old FBO and clear color. More... | |
![]() | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Releases the ownership immediately. More... | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
Destructor. More... | |
Protected Attributes | |
GLuint | _FBO |
var | _FBO |
local | _FBO |
GLint | _oldFBO |
var | _oldFBO |
local | _oldFBO |
GLfloat | _oldClearColor [4] |
var | _oldClearColor () |
local | _oldClearColor () |
![]() | |
unsigned int | _referenceCount |
count of references More... | |
local | _referenceCount |
count of references More... | |
Additional Inherited Members | |
![]() | |
Ref () | |
Constructor. More... | |
Ref () | |
Constructor. More... | |
FBO class that grabs the the contents of the screen.
Grabber | ( | void | ) |
Constructor.
var ctor | ( | ) |
Constructor.
local Grabber | ( | ) |
Constructor.
~Grabber | ( | void | ) |
Destructor.
void afterRender | ( | Texture2D * | texture | ) |
After capture, will reset the old FBO and clear color.
var afterRender | ( | var | texture | ) |
After capture, will reset the old FBO and clear color.
local afterRender | ( | local | texture | ) |
After capture, will reset the old FBO and clear color.
void beforeRender | ( | Texture2D * | texture | ) |
Begin capture the screen, which will save the old FBO, clear color, and set the new FBO, clear the background.
var beforeRender | ( | var | texture | ) |
Begin capture the screen, which will save the old FBO, clear color, and set the new FBO, clear the background.
local beforeRender | ( | local | texture | ) |
Begin capture the screen, which will save the old FBO, clear color, and set the new FBO, clear the background.
void grab | ( | Texture2D * | texture | ) |
Init the grab structure, will set the texture as the FBO color attachment.
var grab | ( | var | texture | ) |
Init the grab structure, will set the texture as the FBO color attachment.
local grab | ( | local | texture | ) |
Init the grab structure, will set the texture as the FBO color attachment.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |