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: FnPtrBindTexImage: FnPtrChooseConfig: FnPtrClientWaitSync: FnPtr

Fallbacks: ClientWaitSyncKHR

CopyBuffers: FnPtrCreateContext: FnPtrCreateImage: FnPtrCreatePbufferFromClientBuffer: FnPtrCreatePbufferSurface: FnPtrCreatePixmapSurface: FnPtrCreatePlatformPixmapSurface: FnPtrCreatePlatformPixmapSurfaceEXT: FnPtrCreatePlatformWindowSurface: FnPtrCreatePlatformWindowSurfaceEXT: FnPtrCreateSync: FnPtr

Fallbacks: CreateSync64KHR

CreateWindowSurface: FnPtrDestroyContext: FnPtrDestroyImage: FnPtr

Fallbacks: DestroyImageKHR

DestroySurface: FnPtrDestroySync: FnPtr

Fallbacks: DestroySyncKHR

GetConfigAttrib: FnPtrGetConfigs: FnPtrGetCurrentContext: FnPtrGetCurrentDisplay: FnPtrGetCurrentSurface: FnPtrGetDisplay: FnPtrGetError: FnPtrGetPlatformDisplay: FnPtrGetPlatformDisplayEXT: FnPtrGetProcAddress: FnPtrGetSyncAttrib: FnPtrInitialize: FnPtrMakeCurrent: FnPtrQueryAPI: FnPtrQueryContext: FnPtrQueryString: FnPtrQuerySurface: FnPtrReleaseTexImage: FnPtrReleaseThread: FnPtrSurfaceAttrib: FnPtrSwapBuffers: FnPtrSwapBuffersWithDamageKHR: FnPtrSwapInterval: FnPtrTerminate: FnPtrWaitClient: FnPtrWaitGL: FnPtrWaitNative: FnPtrWaitSync: FnPtr

Implementations

impl Egl[src]

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

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]

pub unsafe fn ChooseConfig(
    &self,
    dpy: EGLDisplay,
    attrib_list: *const EGLint,
    configs: *mut EGLConfig,
    config_size: EGLint,
    num_config: *mut EGLint
) -> EGLBoolean
[src]

pub unsafe fn ClientWaitSync(
    &self,
    dpy: EGLDisplay,
    sync: EGLSync,
    flags: EGLint,
    timeout: EGLTime
) -> EGLint
[src]

pub unsafe fn CopyBuffers(
    &self,
    dpy: EGLDisplay,
    surface: EGLSurface,
    target: EGLNativePixmapType
) -> EGLBoolean
[src]

pub unsafe fn CreateContext(
    &self,
    dpy: EGLDisplay,
    config: EGLConfig,
    share_context: EGLContext,
    attrib_list: *const EGLint
) -> EGLContext
[src]

pub unsafe fn CreateImage(
    &self,
    dpy: EGLDisplay,
    ctx: EGLContext,
    target: EGLenum,
    buffer: EGLClientBuffer,
    attrib_list: *const EGLAttrib
) -> EGLImage
[src]

pub unsafe fn CreatePbufferFromClientBuffer(
    &self,
    dpy: EGLDisplay,
    buftype: EGLenum,
    buffer: EGLClientBuffer,
    config: EGLConfig,
    attrib_list: *const EGLint
) -> EGLSurface
[src]

pub unsafe fn CreatePbufferSurface(
    &self,
    dpy: EGLDisplay,
    config: EGLConfig,
    attrib_list: *const EGLint
) -> EGLSurface
[src]

pub unsafe fn CreatePixmapSurface(
    &self,
    dpy: EGLDisplay,
    config: EGLConfig,
    pixmap: EGLNativePixmapType,
    attrib_list: *const EGLint
) -> EGLSurface
[src]

pub unsafe fn CreatePlatformPixmapSurface(
    &self,
    dpy: EGLDisplay,
    config: EGLConfig,
    native_pixmap: *mut c_void,
    attrib_list: *const EGLAttrib
) -> EGLSurface
[src]

pub unsafe fn CreatePlatformPixmapSurfaceEXT(
    &self,
    dpy: EGLDisplay,
    config: EGLConfig,
    native_pixmap: *mut c_void,
    attrib_list: *const EGLint
) -> EGLSurface
[src]

pub unsafe fn CreatePlatformWindowSurface(
    &self,
    dpy: EGLDisplay,
    config: EGLConfig,
    native_window: *mut c_void,
    attrib_list: *const EGLAttrib
) -> EGLSurface
[src]

pub unsafe fn CreatePlatformWindowSurfaceEXT(
    &self,
    dpy: EGLDisplay,
    config: EGLConfig,
    native_window: *mut c_void,
    attrib_list: *const EGLint
) -> EGLSurface
[src]

pub unsafe fn CreateSync(
    &self,
    dpy: EGLDisplay,
    type_: EGLenum,
    attrib_list: *const EGLAttrib
) -> EGLSync
[src]

pub unsafe fn CreateWindowSurface(
    &self,
    dpy: EGLDisplay,
    config: EGLConfig,
    win: EGLNativeWindowType,
    attrib_list: *const EGLint
) -> EGLSurface
[src]

pub unsafe fn DestroyContext(
    &self,
    dpy: EGLDisplay,
    ctx: EGLContext
) -> EGLBoolean
[src]

pub unsafe fn DestroyImage(
    &self,
    dpy: EGLDisplay,
    image: EGLImage
) -> EGLBoolean
[src]

pub unsafe fn DestroySurface(
    &self,
    dpy: EGLDisplay,
    surface: EGLSurface
) -> EGLBoolean
[src]

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]

pub unsafe fn GetConfigs(
    &self,
    dpy: EGLDisplay,
    configs: *mut EGLConfig,
    config_size: EGLint,
    num_config: *mut EGLint
) -> EGLBoolean
[src]

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]

pub unsafe fn GetPlatformDisplayEXT(
    &self,
    platform: EGLenum,
    native_display: *mut c_void,
    attrib_list: *const EGLint
) -> EGLDisplay
[src]

pub unsafe fn GetProcAddress(
    &self,
    procname: *const c_char
) -> __eglMustCastToProperFunctionPointerType
[src]

pub unsafe fn GetSyncAttrib(
    &self,
    dpy: EGLDisplay,
    sync: EGLSync,
    attribute: EGLint,
    value: *mut EGLAttrib
) -> EGLBoolean
[src]

pub unsafe fn Initialize(
    &self,
    dpy: EGLDisplay,
    major: *mut EGLint,
    minor: *mut EGLint
) -> EGLBoolean
[src]

pub unsafe fn MakeCurrent(
    &self,
    dpy: EGLDisplay,
    draw: EGLSurface,
    read: EGLSurface,
    ctx: EGLContext
) -> EGLBoolean
[src]

pub unsafe fn QueryAPI(&self) -> EGLenum[src]

pub unsafe fn QueryContext(
    &self,
    dpy: EGLDisplay,
    ctx: EGLContext,
    attribute: EGLint,
    value: *mut EGLint
) -> EGLBoolean
[src]

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]

pub unsafe fn ReleaseTexImage(
    &self,
    dpy: EGLDisplay,
    surface: EGLSurface,
    buffer: EGLint
) -> EGLBoolean
[src]

pub unsafe fn ReleaseThread(&self) -> EGLBoolean[src]

pub unsafe fn SurfaceAttrib(
    &self,
    dpy: EGLDisplay,
    surface: EGLSurface,
    attribute: EGLint,
    value: EGLint
) -> EGLBoolean
[src]

pub unsafe fn SwapBuffers(
    &self,
    dpy: EGLDisplay,
    surface: EGLSurface
) -> EGLBoolean
[src]

pub unsafe fn SwapBuffersWithDamageKHR(
    &self,
    dpy: EGLDisplay,
    surface: EGLSurface,
    rects: *mut EGLint,
    n_rects: EGLint
) -> EGLBoolean
[src]

pub unsafe fn SwapInterval(
    &self,
    dpy: EGLDisplay,
    interval: EGLint
) -> EGLBoolean
[src]

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]

Trait Implementations

impl Clone for Egl[src]

impl Send for Egl[src]

Auto Trait Implementations

impl RefUnwindSafe for Egl

impl !Sync for Egl

impl Unpin for Egl

impl UnwindSafe for Egl

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.