作者:nick-fedesn
项目:egle
func SurfaceAttrib(disp Display, surface Surface,
attribute int32, value int32) bool {
return goBoolean(C.eglSurfaceAttrib(C.EGLDisplay(unsafe.Pointer(disp)),
C.EGLSurface(unsafe.Pointer(surface)),
C.EGLint(attribute),
C.EGLint(value)))
}
作者:remogatt
项目:videocor
func ReleaseTexImage(
disp Display, surface Surface, buffer int32) bool {
return goBoolean(C.eglReleaseTexImage(
C.EGLDisplay(unsafe.Pointer(disp)),
C.EGLSurface(unsafe.Pointer(surface)),
C.EGLint(buffer)))
}
作者:fooba
项目:eg
func (display *Display) QueryString(name int) (string, error) {
cString := C.eglQueryString(display.eglDisplay, C.EGLint(name))
if cString == nil {
return "", getError()
}
return C.GoString(cString), nil
}
作者:remogatt
项目:eg
func QuerySurface(
disp Display, surface Surface, attribute int32, value *int32) bool {
return goBoolean(C.eglQuerySurface(
C.EGLDisplay(unsafe.Pointer(disp)),
C.EGLSurface(unsafe.Pointer(surface)),
C.EGLint(attribute),
(*C.EGLint)(value)))
}
作者:fooba
项目:eg
func (surface *Surface) Query(name Attrib) (Attrib, error) {
var value Attrib
success := C.eglQuerySurface(surface.Display.eglDisplay, surface.eglSurface, C.EGLint(name), (*C.EGLint)(&value))
if success == C.EGL_FALSE {
return None, getError()
}
return value, nil
}
作者:nick-fedesn
项目:egle
func ChooseConfig(disp Display, atrribList []int32, configs *Config,
configSize int32, numConfig *int32) bool {
return goBoolean(C.eglChooseConfig(C.EGLDisplay(unsafe.Pointer(disp)),
(*C.EGLint)(&atrribList[0]),
(*C.EGLConfig)(unsafe.Pointer(configs)),
C.EGLint(configSize),
(*C.EGLint)(numConfig)))
}
作者:remogatt
项目:videocor
func GetConfigAttrib(
disp Display, config Config,
attribute int32, value *int32) bool {
return goBoolean(C.eglGetConfigAttrib(
C.EGLDisplay(unsafe.Pointer(disp)),
C.EGLConfig(config),
C.EGLint(attribute),
(*C.EGLint)(unsafe.Pointer(value))))
}
作者:remogatt
项目:videocor
func GetConfigs(
disp Display, configs *Config,
configSize int32, numConfig *int32) bool {
return goBoolean(C.eglGetConfigs(
C.EGLDisplay(unsafe.Pointer(disp)),
(*C.EGLConfig)(unsafe.Pointer(configs)),
C.EGLint(configSize),
(*C.EGLint)(unsafe.Pointer(numConfig))))
}
作者:remogatt
项目:videocor
func QueryContext(
disp Display, ctx Context,
attribute int32, value *int32) bool {
return goBoolean(C.eglQueryContext(
C.EGLDisplay(unsafe.Pointer(disp)),
C.EGLContext(unsafe.Pointer(ctx)),
C.EGLint(attribute),
(*C.EGLint)(value)))
}
作者:fooba
项目:eg
func (display *Display) GetConfigAttrib(config Config, name Attrib) (Attrib, error) {
var value Attrib
success := C.eglGetConfigAttrib(display.eglDisplay, C.EGLConfig(config), C.EGLint(name), (*C.EGLint)(&value))
if success == C.EGL_FALSE {
return None, getError()
}
return value, nil
}
作者:nick-fedesn
项目:egle
func GetCurrentSurface(readdraw int32) Surface {
return Surface(C.eglGetCurrentSurface(C.EGLint(readdraw)))
}
作者:nick-fedesn
项目:egle
func SwapInterval(disp Display, interval int32) bool {
return goBoolean(C.eglSwapInterval(C.EGLDisplay(unsafe.Pointer(disp)),
C.EGLint(interval)))
}
作者:nick-fedesn
项目:egle
func QueryString(disp Display, name int32) string {
return C.GoString(
C.eglQueryString(C.EGLDisplay(unsafe.Pointer(disp)), C.EGLint(name)))
}
作者:nick-fedesn
项目:egle
func WaitNative(engine int32) bool {
return goBoolean(C.eglWaitNative(C.EGLint(engine)))
}