PdGetDevices()

Get region IDs for the currently available draw devices

Synopsis:

int PdGetDevices( PhRid_t *rid_array,
                  uint32_t max_rids );

Arguments:

rid_array
An array that the function can fill with the region IDs of the currently available draw contexts.
max_rids
The number of entries in the array.

Library:

ph

Description:

PdGetDevices() fills the provided rid_array with up to max_rids region IDs of draw devices that are currently available.

Returns:

The number of draw devices currently available on the system. This value may be larger than max_rids, which indicates that the provided array isn't big enough to hold the region IDs for all the draw devices on the system.

Examples:

See PdCreateDirectContext().

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PdSetTargetDevice()

Video memory offscreen in the Raw Drawing and Animation chapter of the Photon Programmer's Guide