1al_set_d3d_device_release_callback(3) al_set_d3d_device_release_callback(3)
2
3
4
6 al_set_d3d_device_release_callback - Allegro 5 API
7
9 #include <allegro5/allegro_direct3d.h>
10
11 void al_set_d3d_device_release_callback(
12 void (*callback)(ALLEGRO_DISPLAY *display))
13
15 The callback will be called whenever a D3D device is reset (minimize,
16 toggle fullscreen window, etc). In the callback you should release any
17 d3d resources you have created yourself. The callback receives the
18 affected display as a parameter.
19
20 Pass NULL to disable the callback.
21
23 5.1.0
24
25
26
27Allegro reference manual al_set_d3d_device_release_callback(3)