pub unsafe trait EGL1_0 {
Show 24 methods
// Required methods
unsafe fn eglChooseConfig(
&self,
display: EGLDisplay,
attrib_list: *const Int,
configs: *mut EGLConfig,
config_size: Int,
num_config: *mut Int,
) -> Boolean;
unsafe fn eglCopyBuffers(
&self,
display: EGLDisplay,
surface: EGLSurface,
target: NativePixmapType,
) -> Boolean;
unsafe fn eglCreateContext(
&self,
display: EGLDisplay,
config: EGLConfig,
share_context: EGLContext,
attrib_list: *const Int,
) -> EGLContext;
unsafe fn eglCreatePbufferSurface(
&self,
display: EGLDisplay,
config: EGLConfig,
attrib_list: *const Int,
) -> EGLSurface;
unsafe fn eglCreatePixmapSurface(
&self,
display: EGLDisplay,
config: EGLConfig,
pixmap: NativePixmapType,
attrib_list: *const Int,
) -> EGLSurface;
unsafe fn eglCreateWindowSurface(
&self,
display: EGLDisplay,
config: EGLConfig,
win: NativeWindowType,
attrib_list: *const Int,
) -> EGLSurface;
unsafe fn eglDestroyContext(
&self,
display: EGLDisplay,
ctx: EGLContext,
) -> Boolean;
unsafe fn eglDestroySurface(
&self,
display: EGLDisplay,
surface: EGLSurface,
) -> Boolean;
unsafe fn eglGetConfigAttrib(
&self,
display: EGLDisplay,
config: EGLConfig,
attribute: Int,
value: *mut Int,
) -> Boolean;
unsafe fn eglGetConfigs(
&self,
display: EGLDisplay,
configs: *mut EGLConfig,
config_size: Int,
num_config: *mut Int,
) -> Boolean;
unsafe fn eglGetCurrentDisplay(&self) -> EGLDisplay;
unsafe fn eglGetCurrentSurface(&self, readdraw: Int) -> EGLSurface;
unsafe fn eglGetDisplay(&self, display_id: NativeDisplayType) -> EGLDisplay;
unsafe fn eglGetError(&self) -> Int;
unsafe fn eglGetProcAddress(
&self,
procname: *const c_char,
) -> extern "system" fn();
unsafe fn eglInitialize(
&self,
display: EGLDisplay,
major: *mut Int,
minor: *mut Int,
) -> Boolean;
unsafe fn eglMakeCurrent(
&self,
display: EGLDisplay,
draw: EGLSurface,
read: EGLSurface,
ctx: EGLContext,
) -> Boolean;
unsafe fn eglQueryContext(
&self,
display: EGLDisplay,
ctx: EGLContext,
attribute: Int,
value: *mut Int,
) -> Boolean;
unsafe fn eglQueryString(
&self,
display: EGLDisplay,
name: Int,
) -> *const c_char;
unsafe fn eglQuerySurface(
&self,
display: EGLDisplay,
surface: EGLSurface,
attribute: Int,
value: *mut Int,
) -> Boolean;
unsafe fn eglSwapBuffers(
&self,
display: EGLDisplay,
surface: EGLSurface,
) -> Boolean;
unsafe fn eglTerminate(&self, display: EGLDisplay) -> Boolean;
unsafe fn eglWaitGL(&self) -> Boolean;
unsafe fn eglWaitNative(&self, engine: 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.
Required Methods§
unsafe fn eglChooseConfig( &self, display: EGLDisplay, attrib_list: *const Int, configs: *mut EGLConfig, config_size: Int, num_config: *mut Int, ) -> Boolean
unsafe fn eglCopyBuffers( &self, display: EGLDisplay, surface: EGLSurface, target: NativePixmapType, ) -> Boolean
unsafe fn eglCreateContext( &self, display: EGLDisplay, config: EGLConfig, share_context: EGLContext, attrib_list: *const Int, ) -> EGLContext
unsafe fn eglCreatePbufferSurface( &self, display: EGLDisplay, config: EGLConfig, attrib_list: *const Int, ) -> EGLSurface
unsafe fn eglCreatePixmapSurface( &self, display: EGLDisplay, config: EGLConfig, pixmap: NativePixmapType, attrib_list: *const Int, ) -> EGLSurface
unsafe fn eglCreateWindowSurface( &self, display: EGLDisplay, config: EGLConfig, win: NativeWindowType, attrib_list: *const Int, ) -> EGLSurface
unsafe fn eglDestroyContext( &self, display: EGLDisplay, ctx: EGLContext, ) -> Boolean
unsafe fn eglDestroySurface( &self, display: EGLDisplay, surface: EGLSurface, ) -> Boolean
unsafe fn eglGetConfigAttrib( &self, display: EGLDisplay, config: EGLConfig, attribute: Int, value: *mut Int, ) -> Boolean
unsafe fn eglGetConfigs( &self, display: EGLDisplay, configs: *mut EGLConfig, config_size: Int, num_config: *mut Int, ) -> Boolean
unsafe fn eglGetCurrentDisplay(&self) -> EGLDisplay
unsafe fn eglGetCurrentSurface(&self, readdraw: Int) -> EGLSurface
unsafe fn eglGetDisplay(&self, display_id: NativeDisplayType) -> EGLDisplay
unsafe fn eglGetError(&self) -> Int
unsafe fn eglGetProcAddress( &self, procname: *const c_char, ) -> extern "system" fn()
unsafe fn eglInitialize( &self, display: EGLDisplay, major: *mut Int, minor: *mut Int, ) -> Boolean
unsafe fn eglMakeCurrent( &self, display: EGLDisplay, draw: EGLSurface, read: EGLSurface, ctx: EGLContext, ) -> Boolean
unsafe fn eglQueryContext( &self, display: EGLDisplay, ctx: EGLContext, attribute: Int, value: *mut Int, ) -> Boolean
unsafe fn eglQueryString(&self, display: EGLDisplay, name: Int) -> *const c_char
unsafe fn eglQuerySurface( &self, display: EGLDisplay, surface: EGLSurface, attribute: Int, value: *mut Int, ) -> Boolean
unsafe fn eglSwapBuffers( &self, display: EGLDisplay, surface: EGLSurface, ) -> Boolean
unsafe fn eglTerminate(&self, display: EGLDisplay) -> Boolean
unsafe fn eglWaitGL(&self) -> Boolean
unsafe fn eglWaitNative(&self, engine: Int) -> Boolean
Implementors§
impl<L: Borrow<Library>> EGL1_0 for Dynamic<L, EGL1_0>
Available on crate features
dynamic and 1_0 only.impl<L: Borrow<Library>> EGL1_0 for Dynamic<L, EGL1_1>
Available on crate features
dynamic and 1_1 only.impl<L: Borrow<Library>> EGL1_0 for Dynamic<L, EGL1_2>
Available on crate features
dynamic and 1_2 only.impl<L: Borrow<Library>> EGL1_0 for Dynamic<L, EGL1_3>
Available on crate features
dynamic and 1_3 only.impl<L: Borrow<Library>> EGL1_0 for Dynamic<L, EGL1_4>
Available on crate features
dynamic and 1_4 only.impl<L: Borrow<Library>> EGL1_0 for Dynamic<L, EGL1_5>
Available on crate features
dynamic and 1_5 only.