Drag[en]gine Game Engine
1.21
|
Capture canvas. More...
#include <deCaptureCanvas.h>
Public Types | |
typedef deTObjectReference< deCaptureCanvas > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deResource | |
typedef deTObjectReference< deResource > | Ref |
Type holding strong reference. More... | |
Public Types inherited from deObject | |
typedef deTObjectReference< deObject > | Ref |
Type holding strong reference. More... | |
Public Member Functions | |
Management | |
deCanvasView * | GetCanvasView () const |
Canvas view to capture. More... | |
void | SetCanvasView (deCanvasView *canvasView) |
Set canvas view to capture. More... | |
deImage * | GetImage () const |
Image to capture canvas view into. More... | |
void | SetImage (deImage *image) |
Set image to capture canvas view into. More... | |
bool | GetCapture () const |
Capture in progress. More... | |
void | SetCapture (bool capture) |
Set if capture is in progress. More... | |
System Peers | |
deBaseGraphicCaptureCanvas * | GetPeerGraphic () const |
Graphic system peer object or NULL if not set. More... | |
void | SetPeerGraphic (deBaseGraphicCaptureCanvas *peer) |
Set graphic system peer object or NULL if not set. More... | |
Public Member Functions inherited from deResource | |
deResourceManager * | GetResourceManager () const |
Resource manager or NULL if resource is leaking. More... | |
deEngine * | GetEngine () const |
Game engine object from resource manager. More... | |
deResource * | GetLLManagerPrev () const |
Previous resource in the resource manager linked list. More... | |
void | SetLLManagerPrev (deResource *resource) |
Set next resource in the resource manager linked list. More... | |
deResource * | GetLLManagerNext () const |
Next resource in the resource manager linked list. More... | |
void | SetLLManagerNext (deResource *resource) |
Set next resource in the resource manager linked list. More... | |
void | MarkLeaking () |
Marks the resource leaking. More... | |
deResource (deResourceManager *resourceManager) | |
Create resource. More... | |
Public Member Functions inherited from deObject | |
int | GetRefCount () const |
Reference count. More... | |
void | AddReference () |
Add reference increasing reference count by 1. More... | |
void | FreeReference () |
Decrease reference count by one and delete object if count reaches 0. More... | |
deObject () | |
Create object with reference count of 1. More... | |
Constructors and Destructors | |
deCaptureCanvas (deCaptureCanvasManager *manager) | |
Create capture canvas. More... | |
virtual | ~deCaptureCanvas () |
Clean up capture canvas. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from deResource | |
virtual | ~deResource () |
Clean up resource. More... | |
Protected Member Functions inherited from deObject | |
virtual | ~deObject () |
Clean up object. More... | |
Capture canvas.
Capture canvas allows to capture the rendering result of a canvas view into an deImage resource. Capturing is done by the graphic module during the next frame rendering. During the next deGraphicSystem::RenderWindows() call or at the end of the current deGraphicSystem::RenderWindows() call the result is stored back into the capture canvas. Whichever is the case depends on the rendering method of the graphic module. You know when the result is ready capture is set to false. The image resource is created by the caller and allows to request the result in a specific size and format. To do a successful capturing of a render view you have to do the following:
Type holding strong reference.
deCaptureCanvas::deCaptureCanvas | ( | deCaptureCanvasManager * | manager | ) |
Create capture canvas.
|
protectedvirtual |
Clean up capture canvas.
|
inline |
Canvas view to capture.
|
inline |
Capture in progress.
|
inline |
Image to capture canvas view into.
|
inline |
Graphic system peer object or NULL if not set.
void deCaptureCanvas::SetCanvasView | ( | deCanvasView * | canvasView | ) |
Set canvas view to capture.
void deCaptureCanvas::SetCapture | ( | bool | capture | ) |
Set if capture is in progress.
void deCaptureCanvas::SetImage | ( | deImage * | image | ) |
Set image to capture canvas view into.
void deCaptureCanvas::SetPeerGraphic | ( | deBaseGraphicCaptureCanvas * | peer | ) |
Set graphic system peer object or NULL if not set.