[][src]Trait glutin::platform::unix::RawContextExt

pub trait RawContextExt {
    unsafe fn build_raw_wayland_context(
        self,
        display_ptr: *const wl_display,
        surface: *mut c_void,
        width: u32,
        height: u32
    ) -> Result<RawContext<NotCurrent>, CreationError>
    where
        Self: Sized
;
unsafe fn build_raw_x11_context(
        self,
        xconn: Arc<XConnection>,
        xwin: c_ulong
    ) -> Result<RawContext<NotCurrent>, CreationError>
    where
        Self: Sized
; }

A unix-specific extension for the ContextBuilder which allows assembling RawContext<T>s.

Required methods

unsafe fn build_raw_wayland_context(
    self,
    display_ptr: *const wl_display,
    surface: *mut c_void,
    width: u32,
    height: u32
) -> Result<RawContext<NotCurrent>, CreationError> where
    Self: Sized

Creates a raw context on the provided surface.

Unsafe behaviour might happen if you:

  • Provide us with invalid parameters.
  • The surface/display_ptr is destroyed before the context

unsafe fn build_raw_x11_context(
    self,
    xconn: Arc<XConnection>,
    xwin: c_ulong
) -> Result<RawContext<NotCurrent>, CreationError> where
    Self: Sized

Creates a raw context on the provided window.

Unsafe behaviour might happen if you:

  • Provide us with invalid parameters.
  • The xwin is destroyed before the context
Loading content...

Implementors

impl<'a, T: ContextCurrentState> RawContextExt for ContextBuilder<'a, T>[src]

Loading content...