Create an offscreen context in video RAM
PdOffscreenContext_t *PdCreateOffscreenContext(
                         unsigned long ImageType,
                         unsigned short width,
                         unsigned short height, 
                         unsigned long flags );
ph
This function creates an offscreen context in video RAM. ImageType must currently be 0 to have the image type defined by the current video mode.
The width and height are the dimensions of the context in pixels, and the flags argument is a set of additional parameters to be used in the creation of the context.
| You must target this function at a specific card by calling PdSetTargetDevice(). PdCreateOffscreenContext() blocks until the operation is complete. | 
The flags include:
The driver may change the dimensions and/or image type of the context in order to comply with this flag.
A pointer to a PdOffscreenContext_t, or NULL.
Photon
| Safety: | |
|---|---|
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | No | 
PdDupOffscreenContext(), PdGetOffscreenContextPtr(), PdOffscreenContext_t, PdSetOffscreenTranslation(), PdSetTargetDevice(), PgContextBlit(), PgSwapDisplay(), PhDCCreate(), PhDCRelease()
"Video memory offscreen" in the Raw Drawing and Animation chapter of the Photon Programmer's Guide