Added window handle (Windows specific)

This commit is contained in:
Sander Schobers 2018-06-04 21:16:36 +02:00
parent 5f031fdd20
commit a761b21775

View File

@ -0,0 +1,12 @@
// +build windows
package allegro5
// #include <allegro5/allegro.h>
// #include <allegro5/allegro_windows.h>
import "C"
import "unsafe"
func (d *Display) WindowHandle() unsafe.Pointer {
return unsafe.Pointer(C.al_get_win_window_handle(d.display))
}