omegalib
13.1
|
The Camera output class is used to simplify and optimize reading back
rendered frames to main memory. More...
#include <CameraOutput.h>
Public Member Functions | |
CameraOutput () | |
void | reset (RenderTarget::Type type) |
void | beginDraw (const DrawContext &context) |
void | endDraw (const DrawContext &context) |
void | startFrame (const FrameInfo &frame) |
void | finishFrame (const FrameInfo &frame) |
bool | isEnabled () |
void | setEnabled (bool value) |
void | setReadbackTarget (PixelData *color, PixelData *depth=NULL) |
void | setReadbackTargetAndViewport (PixelData *color, PixelData *depth, const Rect &readbackViewport) |
void | setTextureTarget (Texture *color, Texture *depth=NULL) |
void | setTextureTargetAndViewport (Texture *color, Texture *depth, const Rect &readbackViewport) |
const Rect & | getReadbackViewport () |
RenderTarget * | getRenderTarget () |
RenderTarget::Type | getType () |
Public Member Functions inherited from omicron::ReferenceType | |
ReferenceType () | |
virtual | ~ReferenceType () |
void | ref () |
void | unref () |
long | refCount () |
Additional Inherited Members | |
Static Public Member Functions inherited from omicron::ReferenceType | |
static void | printObjCounts () |
Static Protected Attributes inherited from omicron::ReferenceType | |
static List< ReferenceType * > | mysObjList |
The Camera output class is used to simplify and optimize reading back
rendered frames to main memory.
Each camera has multiple output available, one for each GPU device active in the current configuration. The general workflow is as follows:
omega::CameraOutput::CameraOutput | ( | ) |
void omega::CameraOutput::beginDraw | ( | const DrawContext & | context | ) |
void omega::CameraOutput::endDraw | ( | const DrawContext & | context | ) |
void omega::CameraOutput::finishFrame | ( | const FrameInfo & | frame | ) |
|
inline |
|
inline |
|
inline |
|
inline |
void omega::CameraOutput::reset | ( | RenderTarget::Type | type | ) |
|
inline |
void omega::CameraOutput::setReadbackTargetAndViewport | ( | PixelData * | color, |
PixelData * | depth, | ||
const Rect & | readbackViewport | ||
) |
void omega::CameraOutput::setTextureTargetAndViewport | ( | Texture * | color, |
Texture * | depth, | ||
const Rect & | readbackViewport | ||
) |
void omega::CameraOutput::startFrame | ( | const FrameInfo & | frame | ) |