Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pd/pdsetoffscreentranslation.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pd/pdsetoffscreentranslation.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pd/pdsetoffscreentranslation.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pd/pdsetoffscreentranslation.html on line 8
Set the translation for an offscreen context
int PdSetOffscreenTranslation(
PdOffscreenContext_t *osc,
PhPoint_t *trans );
- 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.
ph
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.
|
The translation stays with the offscreen context, not the application.
If another application accesses the offscreen context, the same translation
applies. |
- 0
- Success.
- -1
- An error occurred.
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
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
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pd/pdsetoffscreentranslation.html on line 147
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pd/pdsetoffscreentranslation.html on line 147