void al_set_new_display_adapter(int adapter)
Introduced in 5.0.0

Sets the adapter to use for new displays created by the calling thread. The adapter has a monitor attached to it. Information about the monitor can be gotten using al_get_num_video_adapters and al_get_monitor_info.

To return to the default behaviour, pass ALLEGRO_DEFAULT_DISPLAY_ADAPTER.

See also: al_get_num_video_adapters, al_get_monitor_info

Examples: ex_bitmap, ex_dualies, ex_fs_resize, ex_monitorinfo, ex_winfull

Most helpful discussions:

Other recent discussions: