diff --git a/allegro5/platform_windows.go b/allegro5/platform_windows.go new file mode 100644 index 0000000..4400bed --- /dev/null +++ b/allegro5/platform_windows.go @@ -0,0 +1,12 @@ +// +build windows + +package allegro5 + +// #include +// #include +import "C" +import "unsafe" + +func (d *Display) WindowHandle() unsafe.Pointer { + return unsafe.Pointer(C.al_get_win_window_handle(d.display)) +}