window_device();
Returns: Pointer
This function will return the current d3d device pointer,
which you can then (for example) pass through to a DLL.
NOTE: This function is only valid for the Windows and Mac
OSX only (on Mac OSX it contains a pointer to an NSWindow
class).
gfx_pointer = window_device()
The above code will store the d3d device pointer in a variable.