gioui.org/ui@v0.0.0-20190926171558-ce74bc0cbaea/app/egl_android.go (about)

     1  // SPDX-License-Identifier: Unlicense OR MIT
     2  
     3  package app
     4  
     5  /*
     6  #include <EGL/egl.h>
     7  */
     8  import "C"
     9  
    10  type (
    11  	_EGLNativeDisplayType = C.EGLNativeDisplayType
    12  	_EGLNativeWindowType  = C.EGLNativeWindowType
    13  )
    14  
    15  func eglGetDisplay(disp _EGLNativeDisplayType) _EGLDisplay {
    16  	return C.eglGetDisplay(disp)
    17  }
    18  
    19  func eglCreateWindowSurface(disp _EGLDisplay, conf _EGLConfig, win _EGLNativeWindowType, attribs []_EGLint) _EGLSurface {
    20  	eglSurf := C.eglCreateWindowSurface(disp, conf, win, &attribs[0])
    21  	return eglSurf
    22  }