示例#1
0
文件: egl.go 项目: nick-fedesna/egles
func GetDisplay(
	displayID NativeDisplayType) Display {
	return Display(C.eglGetDisplay(
		C.EGLNativeDisplayType(unsafe.Pointer(displayID))))
}
示例#2
0
文件: display.go 项目: foobaz/egl
func OpenDisplay() (*Display, error) {
	display := new(Display)

	display.eglDisplay = C.eglGetDisplay(defaultDisplay)
	return display, nil
}