Copy data from an area in one context to another context
void PgContextBlitArea( PdOffscreenContext_t *src, PhArea_t *src_area, PdOffscreenContext_t *dst, PhArea_t *dst_area ); void PgContextBlitAreaCx( void *dc, PdOffscreenContext_t *src, PhArea_t *src_area, PdOffscreenContext_t *dst, PhArea_t *dst_area );
ph
These functions copy data from an area in one offscreen context to an area in another offscreen context. PgContextBlitArea() works on the current draw context, while you can specify the draw context for PgContextBlitAreaCx().
These functions obey many of the parameters in the draw state: Chroma, Alpha, Raster Operation (DrawMode), Fill Pattern (FillDither), and Fill Transparency pattern (FillTransp).
Fill Patterns are used only if the Raster Operation requested includes a pattern operation (e.g. Pg_DrawModePSo). Fill Transparency patterns are obeyed whether or not the Raster operation includes a pattern. If the current Raster Operation is a Photon 1.xx raster operation (e.g. Pg_DRAWMODE_OPAQUE), then all patterns are ignored. |
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
PdCreateOffscreenContext(), PdDupOffscreenContext(), PdGetOffscreenContextPtr(), PdOffscreenContext_t, PgContextBlit*(), PgSetRegion*(), PgSwapDisplay*(), PhArea_t
“Video memory offscreen” in the Raw Drawing and Animation chapter of the Photon Programmer's Guide