Skip to main content

EGL1_1

Trait EGL1_1 

Source
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 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 eglBindTexImage( &self, display: EGLDisplay, surface: EGLSurface, buffer: Int, ) -> Boolean

Source

unsafe fn eglReleaseTexImage( &self, display: EGLDisplay, surface: EGLSurface, buffer: Int, ) -> Boolean

Source

unsafe fn eglSurfaceAttrib( &self, display: EGLDisplay, surface: EGLSurface, attribute: Int, value: Int, ) -> Boolean

Source

unsafe fn eglSwapInterval(&self, display: EGLDisplay, interval: Int) -> Boolean

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<L: Borrow<Library>> EGL1_1 for Dynamic<L, EGL1_1>

Available on crate features 1_1 and dynamic only.
Source§

impl<L: Borrow<Library>> EGL1_1 for Dynamic<L, EGL1_2>

Available on crate features 1_2 and dynamic only.
Source§

impl<L: Borrow<Library>> EGL1_1 for Dynamic<L, EGL1_3>

Available on crate features 1_3 and dynamic only.
Source§

impl<L: Borrow<Library>> EGL1_1 for Dynamic<L, EGL1_4>

Available on crate features 1_4 and dynamic only.
Source§

impl<L: Borrow<Library>> EGL1_1 for Dynamic<L, EGL1_5>

Available on crate features 1_5 and dynamic only.