PdGetDevices / PdSetTargetDevice

Hi there,

Wondering if anyone can tell me why PdGetDevices and PdSetTargetDevice
don’t seem to be implemented (not that greping all of headers and libraries
reveals anyway). I am trying to enumerate all the available video modes and
remember the current mode, but get unresolved externals on Pd* and if I omit
them the call to PgGetVideoMode returns junk.

Any ideas?

Martin



/* Get video mode information. First is desktop windowed mode */

/* Get first device and set as target */
PdGetDevices(&device, 1);
PdSetTargetDevice(&device);

PgGetVideoMode(&display);
PgGetVideoModeInfo(display.mode, &modeInfo[0]);


PgVideoModes_t modeList;
PgVideoModeInfo_t *modeInfo;
PgDisplaySettings_t display;

PgGetVideoModeList(&modeList);

if(modeList.num_modes == 0)
{
/* no modes :frowning: */
return FALSE;
}

/* Allocate space for mode info and retrieve /
numModes = modeList.num_modes + 1;
modeInfo = (PgVideoModeInfo_t
)malloc(sizeof(PgVideoModeInfo_t) *
numModes);

/* Get video mode information /
/
First is desktop windowed mode */

/* Get first device and set as target */
PdGetDevices(&device, 1);
PdSetTargetDevice(&device);

PgGetVideoMode(&display);
PgGetVideoModeInfo(display.mode, &modeInfo[0]);
for(i = 1; i < numModes; i++)
{
PgGetVideoModeInfo(i-1, &modeInfo_);
}_