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/pdsettargetdevice.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/pdsettargetdevice.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/pdsettargetdevice.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/pdsettargetdevice.html on line 8

PdSetTargetDevice()

Set the target device

Synopsis:

PhRid_t PdSetTargetDevice ( const void *dc,
                        PhRid_t device_rid );

Arguments:

dc
A void pointer to any type of draw context, or NULL for the current draw context. Examples of draw contexts are:
device_rid
The region ID of the device that you want to be the target. To get the region IDs for the currently available draw devices, call PdGetDevices().

Library:

ph

Description:

This function sets the device with the given region ID to be the target for device-specific queries and control operations in the given draw context. By default, the target is the screen.

You can target the following functions at specific cards:

Returns:

The region ID of the previously set device, or 0 if no device was set
Success.
-1
An error occurred.

Examples:

See PdCreateDirectContext().

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PdGetDevices()

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/pdsettargetdevice.html on line 162

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/pdsettargetdevice.html on line 162