pub unsafe trait EGL1_1: EGL1_0 {
// Required methods
unsafe fn eglBindTexImage(
&self,
display: EGLDisplay,
surface: EGLSurface,
buffer: Int,
) -> Boolean;
unsafe fn eglReleaseTexImage(
&self,
display: EGLDisplay,
surface: EGLSurface,
buffer: Int,
) -> Boolean;
unsafe fn eglSurfaceAttrib(
&self,
display: EGLDisplay,
surface: EGLSurface,
attribute: Int,
value: Int,
) -> Boolean;
unsafe fn eglSwapInterval(
&self,
display: EGLDisplay,
interval: Int,
) -> 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.