Struct egli::Context
[−]
[src]
pub struct Context { /* fields omitted */ }
[EGL 1.0]
RAII wrapper for
EGLContext.
When dropped, frees up the context with eglDestroyContext
call.
Note that the surface would not be immediately freed if it is current to any thread. In such a case, the surface will be freed when it is no longer used.
Methods
impl Context
[src]
fn from_handle(
display_handle: EGLDisplay,
context_handle: EGLSurface
) -> Context
display_handle: EGLDisplay,
context_handle: EGLSurface
) -> Context
Create a Context
from an existing EGL display and context handles.
fn handle(&self) -> EGLContext
Get raw handle.
fn forget(self) -> EGLContext
Drops Context
without cleaning up any resources.
Returns EGLContext
handle.
Alias for Into<egl::EGLContext>
.
Trait Implementations
impl Drop for Context
[src]
impl Into<EGLContext> for Context
[src]
fn into(self) -> EGLContext
Performs the conversion.