From a761b21775198cb31255ac822125e33df2b718f1 Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Mon, 4 Jun 2018 21:16:36 +0200 Subject: [PATCH] Added window handle (Windows specific) --- allegro5/platform_windows.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 allegro5/platform_windows.go 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)) +}