Important: The information in this document is obsolete and should not be used for new development.
Getting the Available Graphics Devices
To gain access to theGDevicerecord for a video device--for example, to determine the size and pixel depth of its attached screen--your application needs to get a handle to that record.Your application can use the
GetDeviceListfunction to obtain a handle to the firstGDevicerecord in the device list, theGetGDevicefunction to obtain a handle to theGDevicerecord for the current device, theGetMainDevicefunction to obtain a handle to theGDevicerecord for the main screen, and theGetMaxDevicefunction to obtain a handle to theGDevicerecord for the video device with the greatest pixel depth.All existing
GDevicerecords are linked together in the device list. After using one of these functions to obtain a handle to one of theGDevicerecords in the device list, your application can use theGetNextDevicefunction to obtain a handle to the nextGDevicerecord in the list.Two related functions,
GetGWorldandGetGWorldDevice, also allow you to obtain handles toGDevicerecords. To get theGDevicerecord for the current device, you can use theGetGWorldfunction. To get a handle to theGDevicerecord for a particular offscreen graphics world, you can use theGetGWorldDevicefunction. These two functions are described in the next chapter, "Offscreen Graphics Worlds."
Subtopics
- GetGDevice
- GetDeviceList
- GetMainDevice
- GetMaxDevice
- GetNextDevice