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/pdcreateoffscreencontext.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/pdcreateoffscreencontext.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/pdcreateoffscreencontext.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/pdcreateoffscreencontext.html on line 8
Create an offscreen context
PdOffscreenContext_t *PdCreateOffscreenContext(
unsigned long ImageType,
unsigned short width,
unsigned short height,
unsigned long flags );
- ImageType
- The type of image. Can be one of:
- Pg_IMAGE_DIRECT_1555
- Pg_IMAGE_DIRECT_565
- Pg_IMAGE_DIRECT_888
- Pg_IMAGE_DIRECT_8888
- Pg_IMAGE_PALETTE_BYTE
- 0 (the image type is defined by the current video mode)
For more information about these image types, see PhImage_t.
- width,
height
- The dimensions of the context, in pixels.
- flags
- Flags that indicate how you want to create the offscreen context. Set to 0 if there are no
restrictions on where the context can be allocated. Can be a combination of:
ph
This function creates an offscreen context.
|
You must target this function at a specific card by calling
PdSetTargetDevice().
PdCreateOffscreenContext() blocks until the operation is complete. |
If there isn't enough space in video RAM to create the offscreen context,
the behavior of this function depends on the driver;
most drivers allocate space in system memory instead (if none of SYS_ONLY, 2D_WRITABLE, or 2D_READABLE are set in flags).
A pointer to a PdOffscreenContext_t, or NULL
if an error occurred.
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
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/pdcreateoffscreencontext.html on line 228
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/pdcreateoffscreencontext.html on line 228