Struct surfman::egl::Egl

source ·
pub struct Egl {
Show 45 fields pub BindAPI: FnPtr, pub BindTexImage: FnPtr, pub ChooseConfig: FnPtr, pub ClientWaitSync: FnPtr, pub CopyBuffers: FnPtr, pub CreateContext: FnPtr, pub CreateImage: FnPtr, pub CreatePbufferFromClientBuffer: FnPtr, pub CreatePbufferSurface: FnPtr, pub CreatePixmapSurface: FnPtr, pub CreatePlatformPixmapSurface: FnPtr, pub CreatePlatformWindowSurface: FnPtr, pub CreateSync: FnPtr, pub CreateWindowSurface: FnPtr, pub DestroyContext: FnPtr, pub DestroyImage: FnPtr, pub DestroySurface: FnPtr, pub DestroySync: FnPtr, pub GetConfigAttrib: FnPtr, pub GetConfigs: FnPtr, pub GetCurrentContext: FnPtr, pub GetCurrentDisplay: FnPtr, pub GetCurrentSurface: FnPtr, pub GetDisplay: FnPtr, pub GetError: FnPtr, pub GetPlatformDisplay: FnPtr, pub GetProcAddress: FnPtr, pub GetSyncAttrib: FnPtr, pub Initialize: FnPtr, pub MakeCurrent: FnPtr, pub QueryAPI: FnPtr, pub QueryContext: FnPtr, pub QueryString: FnPtr, pub QuerySurface: FnPtr, pub ReleaseTexImage: FnPtr, pub ReleaseThread: FnPtr, pub SurfaceAttrib: FnPtr, pub SwapBuffers: FnPtr, pub SwapInterval: FnPtr, pub Terminate: FnPtr, pub WaitClient: FnPtr, pub WaitGL: FnPtr, pub WaitNative: FnPtr, pub WaitSync: FnPtr, _priv: (),
}

Fields§

§BindAPI: FnPtr§BindTexImage: FnPtr§ChooseConfig: FnPtr§ClientWaitSync: FnPtr

Fallbacks: ClientWaitSyncKHR

§CopyBuffers: FnPtr§CreateContext: FnPtr§CreateImage: FnPtr§CreatePbufferFromClientBuffer: FnPtr§CreatePbufferSurface: FnPtr§CreatePixmapSurface: FnPtr§CreatePlatformPixmapSurface: FnPtr§CreatePlatformWindowSurface: FnPtr§CreateSync: FnPtr

Fallbacks: CreateSync64KHR

§CreateWindowSurface: FnPtr§DestroyContext: FnPtr§DestroyImage: FnPtr

Fallbacks: DestroyImageKHR

§DestroySurface: FnPtr§DestroySync: FnPtr

Fallbacks: DestroySyncKHR

§GetConfigAttrib: FnPtr§GetConfigs: FnPtr§GetCurrentContext: FnPtr§GetCurrentDisplay: FnPtr§GetCurrentSurface: FnPtr§GetDisplay: FnPtr§GetError: FnPtr§GetPlatformDisplay: FnPtr§GetProcAddress: FnPtr§GetSyncAttrib: FnPtr§Initialize: FnPtr§MakeCurrent: FnPtr§QueryAPI: FnPtr§QueryContext: FnPtr§QueryString: FnPtr§QuerySurface: FnPtr§ReleaseTexImage: FnPtr§ReleaseThread: FnPtr§SurfaceAttrib: FnPtr§SwapBuffers: FnPtr§SwapInterval: FnPtr§Terminate: FnPtr§WaitClient: FnPtr§WaitGL: FnPtr§WaitNative: FnPtr§WaitSync: FnPtr§_priv: ()

Implementations§

source§

impl Egl

source

pub fn load_with<F>(loadfn: F) -> Egl
where F: FnMut(&'static str) -> *const c_void,

Load each OpenGL symbol using a custom load function. This allows for the use of functions like glfwGetProcAddress or SDL_GL_GetProcAddress.

let gl = Gl::load_with(|s| glfw.get_proc_address(s));
source

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

source

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

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, ) -> c_uint

source

pub unsafe fn ClientWaitSync( &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, ) -> c_uint

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: c_uint, buffer: *const c_void, attrib_list: *const isize, ) -> *const c_void

source

pub unsafe fn CreatePbufferFromClientBuffer( &self, dpy: *const c_void, buftype: c_uint, 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 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 CreateSync( &self, dpy: *const c_void, type_: c_uint, attrib_list: *const isize, ) -> *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, ) -> c_uint

source

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

source

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

source

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

source

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

source

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

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: c_uint, native_display: *mut c_void, attrib_list: *const isize, ) -> *const c_void

source

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

source

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

source

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

source

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

source

pub unsafe fn QueryAPI(&self) -> c_uint

source

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

source

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

source

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

source

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

source

pub unsafe fn ReleaseThread(&self) -> c_uint

source

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

source

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

source

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

source

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

source

pub unsafe fn WaitClient(&self) -> c_uint

source

pub unsafe fn WaitGL(&self) -> c_uint

source

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

source

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

Trait Implementations§

source§

impl Clone for Egl

source§

fn clone(&self) -> Egl

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Send for Egl

Auto Trait Implementations§

§

impl Freeze for Egl

§

impl RefUnwindSafe for Egl

§

impl !Sync 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<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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>,

§

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.