.\" Automatically generated by Pandoc 2.17.1.1 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "al_set_d3d_device_restore_callback" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP al_set_d3d_device_restore_callback - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include void al_set_d3d_device_restore_callback( void (*callback)(ALLEGRO_DISPLAY *display)) \f[R] .fi .SH DESCRIPTION .PP 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 .PP 5.1.0