Description: This sample demonstrates how to query display drivers for multi-monitor configuration information when Eyefinity is enabled. The provided code enables game developers to gain access to global Eyefinity state such as whether Eyefinity is enabled or not, the SLS grid dimensions, and total SLS rendering area, as well as per display state such as SLS grid coordinates and SLS rendering area.
Supported OS: Windows
Init and Destroy: Initialize the library before using it and destroy it after the usage. Refer to InitADL() for initialization and clean-up is done inside main function only.
Functionality:
- Check if Eyefinity is enabled on the system. If yes, identify the SLS (Single Large Surface) grid configuration of displays. 3x1 layout, 3x2 layout etc… “ADL2_Display_DisplayMapConfig_Get” is used for the same.
- Print the SLS size of the surface that spans the displays and whether Bezel compensation is enabled. If also presents SLS grid coordinates, total rendering area and visible rendering area of each display. “ADL2_Display_SLSMapIndexList_Get” & “ADL2_Display_SLSMapConfigX2_Get” are used.
Sample Path: Sample\Eyefinity