.\" Automatically generated by Pandoc 3.1.11.1 .\" .TH "al_set_d3d_device_restore_callback" "3" "" "Allegro reference manual" "" .SH NAME al_set_d3d_device_restore_callback \- Allegro 5 API .SH SYNOPSIS .IP .EX #include void al_set_d3d_device_restore_callback( void (*callback)(ALLEGRO_DISPLAY *display)) .EE .SH DESCRIPTION The callback will be called whenever a D3D device that has been reset is restored. In the callback you should restore any d3d resources you have created yourself. The callback receives the affected display as a parameter. .PP Pass NULL to disable the callback. .SH SINCE 5.1.0