khronos_egl::api

Trait EGL1_2

Source
pub unsafe trait EGL1_2: EGL1_0 + EGL1_1 {
    // Required methods
    unsafe fn eglBindAPI(&self, api: Enum) -> Boolean;
    unsafe fn eglQueryAPI(&self) -> Enum;
    unsafe fn eglCreatePbufferFromClientBuffer(
        &self,
        display: EGLDisplay,
        buftype: Enum,
        buffer: EGLClientBuffer,
        config: EGLConfig,
        attrib_list: *const Int,
    ) -> EGLSurface;
    unsafe fn eglReleaseThread(&self) -> Boolean;
    unsafe fn eglWaitClient(&self) -> Boolean;
}
Expand description

EGL API interface.

An implementation of this trait can be used to create an Instance.

This crate provides two implementation of this trait:

  • [Static] which is available with the static feature enabled, defined by statically linking to the EGL library at compile time.
  • Dynamic which is available with the dynamic feature enabled, defined by dynamically linking to the EGL library at runtime. In this case, you may prefer to directly use the DynamicInstance type.

Required Methods§

Source

unsafe fn eglBindAPI(&self, api: Enum) -> Boolean

Source

unsafe fn eglQueryAPI(&self) -> Enum

Source

unsafe fn eglCreatePbufferFromClientBuffer( &self, display: EGLDisplay, buftype: Enum, buffer: EGLClientBuffer, config: EGLConfig, attrib_list: *const Int, ) -> EGLSurface

Source

unsafe fn eglReleaseThread(&self) -> Boolean

Source

unsafe fn eglWaitClient(&self) -> Boolean

Implementors§