PdSetOffscreenTranslation()

Set the translation for an offscreen context

Synopsis:

int PdSetOffscreenTranslation(
       PdOffscreenContext_t *osc, 
       PhPoint_t *trans );

Arguments:

osc
A pointer to the offscreen context, as returned by PdCreateOffscreenContext(), whose translation you want to set.
trans
A pointer to a PhPoint_t that defines the translation.

Library:

ph

Description:

This function sets the translation for the offscreen context pointed to by osc to the value specified by the structure pointed to by trans. This translation is applied to the points used in graphical operations in the offscreen context.


Note: The translation stays with the offscreen context, not the application. If another application accesses the offscreen context, the same translation applies.

Returns:

0
Success.
-1
An error occurred.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PdCreateOffscreenContext(), PdDupOffscreenContext(), PdGetOffscreenContextPtr(), PdOffscreenContext_t, PdSetTargetDevice(), PgContextBlit(), PgSwapDisplay(), PhDCCreate(), PhDCRelease()

Video memory offscreen in the Raw Drawing and Animation chapter of the Photon Programmer's Guide