Trait glutin::platform::ContextTraitExt
source · pub trait ContextTraitExt {
type Handle;
// Required methods
unsafe fn raw_handle(&self) -> Self::Handle;
unsafe fn get_egl_display(&self) -> Option<*const c_void>;
}
Expand description
Platform-specific extensions for OpenGL Context
s.
Required Associated Types§
Required Methods§
sourceunsafe fn raw_handle(&self) -> Self::Handle
unsafe fn raw_handle(&self) -> Self::Handle
Returns the raw context handle.
sourceunsafe fn get_egl_display(&self) -> Option<*const c_void>
unsafe fn get_egl_display(&self) -> Option<*const c_void>
Returns a pointer to the EGLDisplay
object of EGL that is used by this
context.
Return None
if the context doesn’t use EGL.