Added window handle (Windows specific)
This commit is contained in:
parent
5f031fdd20
commit
a761b21775
12
allegro5/platform_windows.go
Normal file
12
allegro5/platform_windows.go
Normal 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))
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user