window_device

Returns the current d3d device pointer.

Syntax:

window_device();


Returns: Pointer


Description

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).


Example:

gfx_pointer = window_device()

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


Back: The Game Window
Next: window_center
© Copyright YoYo Games Ltd. 2018 All Rights Reserved