[Previous] [Contents] [Index] [Next]

PdSetOffscreenTranslation()

Set the translation for an offscreen context

Synopsis:

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

Library:

ph

Description:

This function sets the translation for the offscreen context pointed to by osc to the value specified by the PhPoint_t 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


[Previous] [Contents] [Index] [Next]