FBO class that grabs the contents of the screen. More...
Inherits Ref.
Public Member Functions | |
Grabber (void) | |
Constructor. | |
ctor () | |
Constructor. | |
Grabber () | |
Constructor. | |
~Grabber (void) | |
Destructor. | |
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... | |
Public Member Functions inherited from Ref | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Releases the ownership immediately. More... | |
local | 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... | |
local | getReferenceCount () |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
Destructor. More... | |
Additional Inherited Members | |
Public Attributes inherited from Ref | |
unsigned int | _ID |
object id, ScriptSupport need public _ID | |
local | _ID |
object id, ScriptSupport need public _ID | |
int | _luaID |
Lua reference id. | |
local | _luaID |
Lua reference id. | |
void * | _scriptObject |
scriptObject, support for swift | |
local | _scriptObject |
scriptObject, support for swift | |
bool | _rooted |
When true, it means that the object was already rooted. | |
local | _rooted |
When true, it means that the object was already rooted. | |
FBO class that grabs the contents of the screen.
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.
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 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.