Struct glutin_egl_sys::egl::Egl [−][src]
pub struct Egl {}Show 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 CreatePlatformPixmapSurfaceEXT: FnPtr, pub CreatePlatformWindowSurface: FnPtr, pub CreatePlatformWindowSurfaceEXT: 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 GetPlatformDisplayEXT: 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 SwapBuffersWithDamageKHR: FnPtr, pub SwapInterval: FnPtr, pub Terminate: FnPtr, pub WaitClient: FnPtr, pub WaitGL: FnPtr, pub WaitNative: FnPtr, pub WaitSync: FnPtr, // some fields omitted
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
CreatePlatformPixmapSurfaceEXT: FnPtr
CreatePlatformWindowSurface: FnPtr
CreatePlatformWindowSurfaceEXT: 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
GetPlatformDisplayEXT: 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
SwapBuffersWithDamageKHR: FnPtr
SwapInterval: FnPtr
Terminate: FnPtr
WaitClient: FnPtr
WaitGL: FnPtr
WaitNative: FnPtr
WaitSync: FnPtr
Implementations
impl Egl
[src]
pub fn load_with<F>(loadfn: F) -> Egl where
F: FnMut(&'static str) -> *const c_void,
[src]
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));
pub unsafe fn BindAPI(&self, api: EGLenum) -> EGLBoolean
[src]
pub unsafe fn BindTexImage(
&self,
dpy: EGLDisplay,
surface: EGLSurface,
buffer: EGLint
) -> EGLBoolean
[src]
&self,
dpy: EGLDisplay,
surface: EGLSurface,
buffer: EGLint
) -> EGLBoolean
pub unsafe fn ChooseConfig(
&self,
dpy: EGLDisplay,
attrib_list: *const EGLint,
configs: *mut EGLConfig,
config_size: EGLint,
num_config: *mut EGLint
) -> EGLBoolean
[src]
&self,
dpy: EGLDisplay,
attrib_list: *const EGLint,
configs: *mut EGLConfig,
config_size: EGLint,
num_config: *mut EGLint
) -> EGLBoolean
pub unsafe fn ClientWaitSync(
&self,
dpy: EGLDisplay,
sync: EGLSync,
flags: EGLint,
timeout: EGLTime
) -> EGLint
[src]
&self,
dpy: EGLDisplay,
sync: EGLSync,
flags: EGLint,
timeout: EGLTime
) -> EGLint
pub unsafe fn CopyBuffers(
&self,
dpy: EGLDisplay,
surface: EGLSurface,
target: EGLNativePixmapType
) -> EGLBoolean
[src]
&self,
dpy: EGLDisplay,
surface: EGLSurface,
target: EGLNativePixmapType
) -> EGLBoolean
pub unsafe fn CreateContext(
&self,
dpy: EGLDisplay,
config: EGLConfig,
share_context: EGLContext,
attrib_list: *const EGLint
) -> EGLContext
[src]
&self,
dpy: EGLDisplay,
config: EGLConfig,
share_context: EGLContext,
attrib_list: *const EGLint
) -> EGLContext
pub unsafe fn CreateImage(
&self,
dpy: EGLDisplay,
ctx: EGLContext,
target: EGLenum,
buffer: EGLClientBuffer,
attrib_list: *const EGLAttrib
) -> EGLImage
[src]
&self,
dpy: EGLDisplay,
ctx: EGLContext,
target: EGLenum,
buffer: EGLClientBuffer,
attrib_list: *const EGLAttrib
) -> EGLImage
pub unsafe fn CreatePbufferFromClientBuffer(
&self,
dpy: EGLDisplay,
buftype: EGLenum,
buffer: EGLClientBuffer,
config: EGLConfig,
attrib_list: *const EGLint
) -> EGLSurface
[src]
&self,
dpy: EGLDisplay,
buftype: EGLenum,
buffer: EGLClientBuffer,
config: EGLConfig,
attrib_list: *const EGLint
) -> EGLSurface
pub unsafe fn CreatePbufferSurface(
&self,
dpy: EGLDisplay,
config: EGLConfig,
attrib_list: *const EGLint
) -> EGLSurface
[src]
&self,
dpy: EGLDisplay,
config: EGLConfig,
attrib_list: *const EGLint
) -> EGLSurface
pub unsafe fn CreatePixmapSurface(
&self,
dpy: EGLDisplay,
config: EGLConfig,
pixmap: EGLNativePixmapType,
attrib_list: *const EGLint
) -> EGLSurface
[src]
&self,
dpy: EGLDisplay,
config: EGLConfig,
pixmap: EGLNativePixmapType,
attrib_list: *const EGLint
) -> EGLSurface
pub unsafe fn CreatePlatformPixmapSurface(
&self,
dpy: EGLDisplay,
config: EGLConfig,
native_pixmap: *mut c_void,
attrib_list: *const EGLAttrib
) -> EGLSurface
[src]
&self,
dpy: EGLDisplay,
config: EGLConfig,
native_pixmap: *mut c_void,
attrib_list: *const EGLAttrib
) -> EGLSurface
pub unsafe fn CreatePlatformPixmapSurfaceEXT(
&self,
dpy: EGLDisplay,
config: EGLConfig,
native_pixmap: *mut c_void,
attrib_list: *const EGLint
) -> EGLSurface
[src]
&self,
dpy: EGLDisplay,
config: EGLConfig,
native_pixmap: *mut c_void,
attrib_list: *const EGLint
) -> EGLSurface
pub unsafe fn CreatePlatformWindowSurface(
&self,
dpy: EGLDisplay,
config: EGLConfig,
native_window: *mut c_void,
attrib_list: *const EGLAttrib
) -> EGLSurface
[src]
&self,
dpy: EGLDisplay,
config: EGLConfig,
native_window: *mut c_void,
attrib_list: *const EGLAttrib
) -> EGLSurface
pub unsafe fn CreatePlatformWindowSurfaceEXT(
&self,
dpy: EGLDisplay,
config: EGLConfig,
native_window: *mut c_void,
attrib_list: *const EGLint
) -> EGLSurface
[src]
&self,
dpy: EGLDisplay,
config: EGLConfig,
native_window: *mut c_void,
attrib_list: *const EGLint
) -> EGLSurface
pub unsafe fn CreateSync(
&self,
dpy: EGLDisplay,
type_: EGLenum,
attrib_list: *const EGLAttrib
) -> EGLSync
[src]
&self,
dpy: EGLDisplay,
type_: EGLenum,
attrib_list: *const EGLAttrib
) -> EGLSync
pub unsafe fn CreateWindowSurface(
&self,
dpy: EGLDisplay,
config: EGLConfig,
win: EGLNativeWindowType,
attrib_list: *const EGLint
) -> EGLSurface
[src]
&self,
dpy: EGLDisplay,
config: EGLConfig,
win: EGLNativeWindowType,
attrib_list: *const EGLint
) -> EGLSurface
pub unsafe fn DestroyContext(
&self,
dpy: EGLDisplay,
ctx: EGLContext
) -> EGLBoolean
[src]
&self,
dpy: EGLDisplay,
ctx: EGLContext
) -> EGLBoolean
pub unsafe fn DestroyImage(
&self,
dpy: EGLDisplay,
image: EGLImage
) -> EGLBoolean
[src]
&self,
dpy: EGLDisplay,
image: EGLImage
) -> EGLBoolean
pub unsafe fn DestroySurface(
&self,
dpy: EGLDisplay,
surface: EGLSurface
) -> EGLBoolean
[src]
&self,
dpy: EGLDisplay,
surface: EGLSurface
) -> EGLBoolean
pub unsafe fn DestroySync(&self, dpy: EGLDisplay, sync: EGLSync) -> EGLBoolean
[src]
pub unsafe fn GetConfigAttrib(
&self,
dpy: EGLDisplay,
config: EGLConfig,
attribute: EGLint,
value: *mut EGLint
) -> EGLBoolean
[src]
&self,
dpy: EGLDisplay,
config: EGLConfig,
attribute: EGLint,
value: *mut EGLint
) -> EGLBoolean
pub unsafe fn GetConfigs(
&self,
dpy: EGLDisplay,
configs: *mut EGLConfig,
config_size: EGLint,
num_config: *mut EGLint
) -> EGLBoolean
[src]
&self,
dpy: EGLDisplay,
configs: *mut EGLConfig,
config_size: EGLint,
num_config: *mut EGLint
) -> EGLBoolean
pub unsafe fn GetCurrentContext(&self) -> EGLContext
[src]
pub unsafe fn GetCurrentDisplay(&self) -> EGLDisplay
[src]
pub unsafe fn GetCurrentSurface(&self, readdraw: EGLint) -> EGLSurface
[src]
pub unsafe fn GetDisplay(&self, display_id: EGLNativeDisplayType) -> EGLDisplay
[src]
pub unsafe fn GetError(&self) -> EGLint
[src]
pub unsafe fn GetPlatformDisplay(
&self,
platform: EGLenum,
native_display: *mut c_void,
attrib_list: *const EGLAttrib
) -> EGLDisplay
[src]
&self,
platform: EGLenum,
native_display: *mut c_void,
attrib_list: *const EGLAttrib
) -> EGLDisplay
pub unsafe fn GetPlatformDisplayEXT(
&self,
platform: EGLenum,
native_display: *mut c_void,
attrib_list: *const EGLint
) -> EGLDisplay
[src]
&self,
platform: EGLenum,
native_display: *mut c_void,
attrib_list: *const EGLint
) -> EGLDisplay
pub unsafe fn GetProcAddress(
&self,
procname: *const c_char
) -> __eglMustCastToProperFunctionPointerType
[src]
&self,
procname: *const c_char
) -> __eglMustCastToProperFunctionPointerType
pub unsafe fn GetSyncAttrib(
&self,
dpy: EGLDisplay,
sync: EGLSync,
attribute: EGLint,
value: *mut EGLAttrib
) -> EGLBoolean
[src]
&self,
dpy: EGLDisplay,
sync: EGLSync,
attribute: EGLint,
value: *mut EGLAttrib
) -> EGLBoolean
pub unsafe fn Initialize(
&self,
dpy: EGLDisplay,
major: *mut EGLint,
minor: *mut EGLint
) -> EGLBoolean
[src]
&self,
dpy: EGLDisplay,
major: *mut EGLint,
minor: *mut EGLint
) -> EGLBoolean
pub unsafe fn MakeCurrent(
&self,
dpy: EGLDisplay,
draw: EGLSurface,
read: EGLSurface,
ctx: EGLContext
) -> EGLBoolean
[src]
&self,
dpy: EGLDisplay,
draw: EGLSurface,
read: EGLSurface,
ctx: EGLContext
) -> EGLBoolean
pub unsafe fn QueryAPI(&self) -> EGLenum
[src]
pub unsafe fn QueryContext(
&self,
dpy: EGLDisplay,
ctx: EGLContext,
attribute: EGLint,
value: *mut EGLint
) -> EGLBoolean
[src]
&self,
dpy: EGLDisplay,
ctx: EGLContext,
attribute: EGLint,
value: *mut EGLint
) -> EGLBoolean
pub unsafe fn QueryString(&self, dpy: EGLDisplay, name: EGLint) -> *const c_char
[src]
pub unsafe fn QuerySurface(
&self,
dpy: EGLDisplay,
surface: EGLSurface,
attribute: EGLint,
value: *mut EGLint
) -> EGLBoolean
[src]
&self,
dpy: EGLDisplay,
surface: EGLSurface,
attribute: EGLint,
value: *mut EGLint
) -> EGLBoolean
pub unsafe fn ReleaseTexImage(
&self,
dpy: EGLDisplay,
surface: EGLSurface,
buffer: EGLint
) -> EGLBoolean
[src]
&self,
dpy: EGLDisplay,
surface: EGLSurface,
buffer: EGLint
) -> EGLBoolean
pub unsafe fn ReleaseThread(&self) -> EGLBoolean
[src]
pub unsafe fn SurfaceAttrib(
&self,
dpy: EGLDisplay,
surface: EGLSurface,
attribute: EGLint,
value: EGLint
) -> EGLBoolean
[src]
&self,
dpy: EGLDisplay,
surface: EGLSurface,
attribute: EGLint,
value: EGLint
) -> EGLBoolean
pub unsafe fn SwapBuffers(
&self,
dpy: EGLDisplay,
surface: EGLSurface
) -> EGLBoolean
[src]
&self,
dpy: EGLDisplay,
surface: EGLSurface
) -> EGLBoolean
pub unsafe fn SwapBuffersWithDamageKHR(
&self,
dpy: EGLDisplay,
surface: EGLSurface,
rects: *mut EGLint,
n_rects: EGLint
) -> EGLBoolean
[src]
&self,
dpy: EGLDisplay,
surface: EGLSurface,
rects: *mut EGLint,
n_rects: EGLint
) -> EGLBoolean
pub unsafe fn SwapInterval(
&self,
dpy: EGLDisplay,
interval: EGLint
) -> EGLBoolean
[src]
&self,
dpy: EGLDisplay,
interval: EGLint
) -> EGLBoolean
pub unsafe fn Terminate(&self, dpy: EGLDisplay) -> EGLBoolean
[src]
pub unsafe fn WaitClient(&self) -> EGLBoolean
[src]
pub unsafe fn WaitGL(&self) -> EGLBoolean
[src]
pub unsafe fn WaitNative(&self, engine: EGLint) -> EGLBoolean
[src]
pub unsafe fn WaitSync(
&self,
dpy: EGLDisplay,
sync: EGLSync,
flags: EGLint
) -> EGLBoolean
[src]
&self,
dpy: EGLDisplay,
sync: EGLSync,
flags: EGLint
) -> EGLBoolean
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,