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 thestaticfeature enabled, defined by statically linking to the EGL library at compile time. Dynamicwhich is available with thedynamicfeature enabled, defined by dynamically linking to the EGL library at runtime. In this case, you may prefer to directly use theDynamicInstancetype.
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
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<L: Borrow<Library>> EGL1_2 for Dynamic<L, EGL1_2>
Available on crate features
1_2 and dynamic only.impl<L: Borrow<Library>> EGL1_2 for Dynamic<L, EGL1_3>
Available on crate features
1_3 and dynamic only.impl<L: Borrow<Library>> EGL1_2 for Dynamic<L, EGL1_4>
Available on crate features
1_4 and dynamic only.impl<L: Borrow<Library>> EGL1_2 for Dynamic<L, EGL1_5>
Available on crate features
1_5 and dynamic only.