glutin::api::egl

Struct Egl

Source
pub struct Egl(/* private fields */);
Expand description

EGL interface.

Methods from Deref<Target = Egl>§

Source

pub unsafe fn BindAPI(&self, api: u32) -> u32

Source

pub unsafe fn BindTexImage( &self, dpy: *const c_void, surface: *const c_void, buffer: i32, ) -> u32

Source

pub unsafe fn ChooseConfig( &self, dpy: *const c_void, attrib_list: *const i32, configs: *mut *const c_void, config_size: i32, num_config: *mut i32, ) -> u32

Source

pub unsafe fn ClientWaitSync( &self, dpy: *const c_void, sync: *const c_void, flags: i32, timeout: u64, ) -> i32

Source

pub unsafe fn ClientWaitSyncKHR( &self, dpy: *const c_void, sync: *const c_void, flags: i32, timeout: u64, ) -> i32

Source

pub unsafe fn CopyBuffers( &self, dpy: *const c_void, surface: *const c_void, target: *const c_void, ) -> u32

Source

pub unsafe fn CreateContext( &self, dpy: *const c_void, config: *const c_void, share_context: *const c_void, attrib_list: *const i32, ) -> *const c_void

Source

pub unsafe fn CreateImage( &self, dpy: *const c_void, ctx: *const c_void, target: u32, buffer: *const c_void, attrib_list: *const isize, ) -> *const c_void

Source

pub unsafe fn CreateImageKHR( &self, dpy: *const c_void, ctx: *const c_void, target: u32, buffer: *const c_void, attrib_list: *const i32, ) -> *const c_void

Source

pub unsafe fn CreatePbufferFromClientBuffer( &self, dpy: *const c_void, buftype: u32, buffer: *const c_void, config: *const c_void, attrib_list: *const i32, ) -> *const c_void

Source

pub unsafe fn CreatePbufferSurface( &self, dpy: *const c_void, config: *const c_void, attrib_list: *const i32, ) -> *const c_void

Source

pub unsafe fn CreatePixmapSurface( &self, dpy: *const c_void, config: *const c_void, pixmap: *const c_void, attrib_list: *const i32, ) -> *const c_void

Source

pub unsafe fn CreatePlatformPixmapSurface( &self, dpy: *const c_void, config: *const c_void, native_pixmap: *mut c_void, attrib_list: *const isize, ) -> *const c_void

Source

pub unsafe fn CreatePlatformPixmapSurfaceEXT( &self, dpy: *const c_void, config: *const c_void, native_pixmap: *mut c_void, attrib_list: *const i32, ) -> *const c_void

Source

pub unsafe fn CreatePlatformWindowSurface( &self, dpy: *const c_void, config: *const c_void, native_window: *mut c_void, attrib_list: *const isize, ) -> *const c_void

Source

pub unsafe fn CreatePlatformWindowSurfaceEXT( &self, dpy: *const c_void, config: *const c_void, native_window: *mut c_void, attrib_list: *const i32, ) -> *const c_void

Source

pub unsafe fn CreateSync( &self, dpy: *const c_void, type_: u32, attrib_list: *const isize, ) -> *const c_void

Source

pub unsafe fn CreateSyncKHR( &self, dpy: *const c_void, type_: u32, attrib_list: *const i32, ) -> *const c_void

Source

pub unsafe fn CreateWindowSurface( &self, dpy: *const c_void, config: *const c_void, win: *const c_void, attrib_list: *const i32, ) -> *const c_void

Source

pub unsafe fn DestroyContext( &self, dpy: *const c_void, ctx: *const c_void, ) -> u32

Source

pub unsafe fn DestroyImage( &self, dpy: *const c_void, image: *const c_void, ) -> u32

Source

pub unsafe fn DestroyImageKHR( &self, dpy: *const c_void, image: *const c_void, ) -> u32

Source

pub unsafe fn DestroySurface( &self, dpy: *const c_void, surface: *const c_void, ) -> u32

Source

pub unsafe fn DestroySync(&self, dpy: *const c_void, sync: *const c_void) -> u32

Source

pub unsafe fn DestroySyncKHR( &self, dpy: *const c_void, sync: *const c_void, ) -> u32

Source

pub unsafe fn DupNativeFenceFDANDROID( &self, dpy: *const c_void, sync: *const c_void, ) -> i32

Source

pub unsafe fn GetConfigAttrib( &self, dpy: *const c_void, config: *const c_void, attribute: i32, value: *mut i32, ) -> u32

Source

pub unsafe fn GetConfigs( &self, dpy: *const c_void, configs: *mut *const c_void, config_size: i32, num_config: *mut i32, ) -> u32

Source

pub unsafe fn GetCurrentContext(&self) -> *const c_void

Source

pub unsafe fn GetCurrentDisplay(&self) -> *const c_void

Source

pub unsafe fn GetCurrentSurface(&self, readdraw: i32) -> *const c_void

Source

pub unsafe fn GetDisplay(&self, display_id: *const c_void) -> *const c_void

Source

pub unsafe fn GetError(&self) -> i32

Source

pub unsafe fn GetPlatformDisplay( &self, platform: u32, native_display: *mut c_void, attrib_list: *const isize, ) -> *const c_void

Source

pub unsafe fn GetPlatformDisplayEXT( &self, platform: u32, native_display: *mut c_void, attrib_list: *const i32, ) -> *const c_void

Source

pub unsafe fn GetProcAddress( &self, procname: *const i8, ) -> *mut __eglMustCastToProperFunctionPointerType_fn

Source

pub unsafe fn GetSyncAttrib( &self, dpy: *const c_void, sync: *const c_void, attribute: i32, value: *mut isize, ) -> u32

Source

pub unsafe fn GetSyncAttribKHR( &self, dpy: *const c_void, sync: *const c_void, attribute: i32, value: *mut i32, ) -> u32

Source

pub unsafe fn Initialize( &self, dpy: *const c_void, major: *mut i32, minor: *mut i32, ) -> u32

Source

pub unsafe fn MakeCurrent( &self, dpy: *const c_void, draw: *const c_void, read: *const c_void, ctx: *const c_void, ) -> u32

Source

pub unsafe fn QueryAPI(&self) -> u32

Source

pub unsafe fn QueryContext( &self, dpy: *const c_void, ctx: *const c_void, attribute: i32, value: *mut i32, ) -> u32

Source

pub unsafe fn QueryDeviceAttribEXT( &self, device: *const c_void, attribute: i32, value: *mut isize, ) -> u32

Source

pub unsafe fn QueryDeviceStringEXT( &self, device: *const c_void, name: i32, ) -> *const i8

Source

pub unsafe fn QueryDevicesEXT( &self, max_devices: i32, devices: *mut *const c_void, num_devices: *mut i32, ) -> u32

Source

pub unsafe fn QueryDisplayAttribEXT( &self, dpy: *const c_void, attribute: i32, value: *mut isize, ) -> u32

Source

pub unsafe fn QueryDisplayAttribKHR( &self, dpy: *const c_void, name: i32, value: *mut isize, ) -> u32

Source

pub unsafe fn QueryString(&self, dpy: *const c_void, name: i32) -> *const i8

Source

pub unsafe fn QuerySurface( &self, dpy: *const c_void, surface: *const c_void, attribute: i32, value: *mut i32, ) -> u32

Source

pub unsafe fn ReleaseTexImage( &self, dpy: *const c_void, surface: *const c_void, buffer: i32, ) -> u32

Source

pub unsafe fn ReleaseThread(&self) -> u32

Source

pub unsafe fn SurfaceAttrib( &self, dpy: *const c_void, surface: *const c_void, attribute: i32, value: i32, ) -> u32

Source

pub unsafe fn SwapBuffers( &self, dpy: *const c_void, surface: *const c_void, ) -> u32

Source

pub unsafe fn SwapBuffersWithDamageEXT( &self, dpy: *const c_void, surface: *const c_void, rects: *mut i32, n_rects: i32, ) -> u32

Source

pub unsafe fn SwapBuffersWithDamageKHR( &self, dpy: *const c_void, surface: *const c_void, rects: *mut i32, n_rects: i32, ) -> u32

Source

pub unsafe fn SwapInterval(&self, dpy: *const c_void, interval: i32) -> u32

Source

pub unsafe fn Terminate(&self, dpy: *const c_void) -> u32

Source

pub unsafe fn WaitClient(&self) -> u32

Source

pub unsafe fn WaitGL(&self) -> u32

Source

pub unsafe fn WaitNative(&self, engine: i32) -> u32

Source

pub unsafe fn WaitSync( &self, dpy: *const c_void, sync: *const c_void, flags: i32, ) -> u32

Source

pub unsafe fn WaitSyncKHR( &self, dpy: *const c_void, sync: *const c_void, flags: i32, ) -> i32

Source

pub unsafe fn CreateWaylandBufferFromImageWL( &self, dpy: *const c_void, image: *const c_void, ) -> *mut c_void

Source

pub unsafe fn BindWaylandDisplayWL( &self, dpy: *const c_void, display: *mut c_void, ) -> u32

Source

pub unsafe fn UnbindWaylandDisplayWL( &self, dpy: *const c_void, display: *mut c_void, ) -> u32

Source

pub unsafe fn QueryWaylandBufferWL( &self, dpy: *const c_void, buffer: *mut c_void, attribute: i32, value: *mut i32, ) -> u32

Trait Implementations§

Source§

impl Deref for Egl

Source§

type Target = Egl

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for Egl

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl Send for Egl

Source§

impl Sync for Egl

Auto Trait Implementations§

§

impl Freeze for Egl

§

impl RefUnwindSafe for Egl

§

impl Unpin for Egl

§

impl UnwindSafe for Egl

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.