|This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.|
Set the target device
PhRid_t PdSetTargetDevice ( const void *dc, PhRid_t device_rid );
- A void pointer to any type of draw context, or NULL for the current draw context. Examples of draw contexts are:
- 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().
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:
- The region ID of the previously set device, or 0 if no device was set
- An error occurred.
"Video memory offscreen" in the Raw Drawing and Animation chapter of the Photon Programmer's Guide