on_d3d_lost

on_d3d_reset

Functions assigned to those pointers are called when the Direct3D device is lost, or has been reset due to a screen mode or resolution change. This can be used for external plug-ins to restore or reset Direct3D objects that have been allocated.

Remarks:

Example:

  function devicelost();  // this invalidates my d3d objects
function devicereset(); // this restores my d3d objects
...
on_d3d_lost = devicelost;
on_d3d_reset = devicereset;

See also:

on_click