al_set_d3d_device_release_callback(3)

al_set_d3d_device_release_callback3

Allegro 5 api

Usage

#include <allegro5/allegro_direct3d.h>
void al_set_d3d_device_release_callback(
   void (*callback)(ALLEGRO_DISPLAY *display))

Overview

The callback will be called whenever a D3D device is reset (minimize, toggle fullscreen window, etc). In the callback you should release any d3d resources you have created yourself. The callback receives the affected display as a parameter.

Pass NULL to disable the callback.

Since

5.1.0

From allegro 5.2.11.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.