![]() |
![]() |
![]() |
![]() |
Duplicate an offscreen context
PdOffscreenContext_t * PdDupOffscreenContext( PdOffscreenContext_t *context, unsigned long flags );
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.
The context argument points to the context to be duplicated, or is NULL if you want to duplicate the screen buffer.
![]() |
You must target this function at a specific card by calling PdSetTargetDevice(). PdDupOffscreenContext() blocks until the operation is complete. |
The flags define how the offscreen context is to be created. The following flags are supported:
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
![]() |
![]() |
![]() |
![]() |