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
impl Egl
sourcepub fn load_with<F>(loadfn: F) -> Egl
pub fn load_with<F>(loadfn: F) -> Egl
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));
pub unsafe fn BindAPI(&self, api: c_uint) -> c_uint
pub unsafe fn BindTexImage( &self, dpy: *const c_void, surface: *const c_void, buffer: i32, ) -> c_uint
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
pub unsafe fn ClientWaitSync( &self, dpy: *const c_void, sync: *const c_void, flags: i32, timeout: u64, ) -> i32
pub unsafe fn CopyBuffers( &self, dpy: *const c_void, surface: *const c_void, target: *const c_void, ) -> c_uint
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
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
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
pub unsafe fn CreatePbufferSurface( &self, dpy: *const c_void, config: *const c_void, attrib_list: *const i32, ) -> *const c_void
pub unsafe fn CreatePixmapSurface( &self, dpy: *const c_void, config: *const c_void, pixmap: *const c_void, attrib_list: *const i32, ) -> *const c_void
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
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
pub unsafe fn CreateSync( &self, dpy: *const c_void, type_: c_uint, attrib_list: *const isize, ) -> *const c_void
pub unsafe fn CreateWindowSurface( &self, dpy: *const c_void, config: *const c_void, win: *const c_void, attrib_list: *const i32, ) -> *const c_void
pub unsafe fn DestroyContext( &self, dpy: *const c_void, ctx: *const c_void, ) -> c_uint
pub unsafe fn DestroyImage( &self, dpy: *const c_void, image: *const c_void, ) -> c_uint
pub unsafe fn DestroySurface( &self, dpy: *const c_void, surface: *const c_void, ) -> c_uint
pub unsafe fn DestroySync( &self, dpy: *const c_void, sync: *const c_void, ) -> c_uint
pub unsafe fn GetConfigAttrib( &self, dpy: *const c_void, config: *const c_void, attribute: i32, value: *mut i32, ) -> c_uint
pub unsafe fn GetConfigs( &self, dpy: *const c_void, configs: *mut *const c_void, config_size: i32, num_config: *mut i32, ) -> c_uint
pub unsafe fn GetCurrentContext(&self) -> *const c_void
pub unsafe fn GetCurrentDisplay(&self) -> *const c_void
pub unsafe fn GetCurrentSurface(&self, readdraw: i32) -> *const c_void
pub unsafe fn GetDisplay(&self, display_id: *const c_void) -> *const c_void
pub unsafe fn GetError(&self) -> i32
pub unsafe fn GetPlatformDisplay( &self, platform: c_uint, native_display: *mut c_void, attrib_list: *const isize, ) -> *const c_void
pub unsafe fn GetProcAddress( &self, procname: *const c_char, ) -> *mut __eglMustCastToProperFunctionPointerType_fn
pub unsafe fn GetSyncAttrib( &self, dpy: *const c_void, sync: *const c_void, attribute: i32, value: *mut isize, ) -> c_uint
pub unsafe fn Initialize( &self, dpy: *const c_void, major: *mut i32, minor: *mut i32, ) -> c_uint
pub unsafe fn MakeCurrent( &self, dpy: *const c_void, draw: *const c_void, read: *const c_void, ctx: *const c_void, ) -> c_uint
pub unsafe fn QueryAPI(&self) -> c_uint
pub unsafe fn QueryContext( &self, dpy: *const c_void, ctx: *const c_void, attribute: i32, value: *mut i32, ) -> c_uint
pub unsafe fn QueryString(&self, dpy: *const c_void, name: i32) -> *const c_char
pub unsafe fn QuerySurface( &self, dpy: *const c_void, surface: *const c_void, attribute: i32, value: *mut i32, ) -> c_uint
pub unsafe fn ReleaseTexImage( &self, dpy: *const c_void, surface: *const c_void, buffer: i32, ) -> c_uint
pub unsafe fn ReleaseThread(&self) -> c_uint
pub unsafe fn SurfaceAttrib( &self, dpy: *const c_void, surface: *const c_void, attribute: i32, value: i32, ) -> c_uint
pub unsafe fn SwapBuffers( &self, dpy: *const c_void, surface: *const c_void, ) -> c_uint
pub unsafe fn SwapInterval(&self, dpy: *const c_void, interval: i32) -> c_uint
pub unsafe fn Terminate(&self, dpy: *const c_void) -> c_uint
pub unsafe fn WaitClient(&self) -> c_uint
pub unsafe fn WaitGL(&self) -> c_uint
pub unsafe fn WaitNative(&self, engine: i32) -> c_uint
pub unsafe fn WaitSync( &self, dpy: *const c_void, sync: *const c_void, flags: i32, ) -> c_uint
Trait Implementations§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more