window_device

This function will return the current d3d device pointer, which you can then (for example) pass through to a DLL or Dylib on Windows and macOS.

NOTE: This function has been deprecated in GameMaker Studio 2 in favour of os_get_info().

 

Syntax:

window_device();

 

Returns:

Pointer

 

Example:

gfx_pointer = window_device()

The above code will store the d3d device pointer in a variable.