Duplicate an offscreen context
PdOffscreenContext_t * PdDupOffscreenContext( PdOffscreenContext_t *context, unsigned long flags );
The driver may change the dimensions and/or image type of the context in order to comply with this flag.
ph
PdDupOffscreenContext() makes a copy of the given context. This not only creates a context that has the same dimensions and image type, but also copies the image data.
You must target this function at a specific card by calling PdSetTargetDevice(). PdDupOffscreenContext() blocks until the operation is complete. |
A pointer to a PdOffscreenContext_t structure, or NULL on failure.
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PdCreateOffscreenContext(), PdGetOffscreenContextPtr(), PdOffscreenContext_t, PdSetOffscreenTranslation(), PdSetTargetDevice(), PgContextBlit(), PgSwapDisplay()
“Video memory offscreen” in the Raw Drawing and Animation chapter of the Photon Programmer's Guide