Trait glutin::os::windows::RawContextExt
source · pub trait RawContextExt {
// Required method
unsafe fn new_raw_context(
hwnd: *mut c_void,
cb: ContextBuilder<'_>
) -> Result<RawContext, CreationError>
where Self: Sized;
}
Required Methods§
sourceunsafe fn new_raw_context(
hwnd: *mut c_void,
cb: ContextBuilder<'_>
) -> Result<RawContext, CreationError>where
Self: Sized,
unsafe fn new_raw_context( hwnd: *mut c_void, cb: ContextBuilder<'_> ) -> Result<RawContext, CreationError>where Self: Sized,
Creates a raw context on the provided window.
Unsafe behaviour might happen if you:
- Provide us with invalid parameters.
- The window is destroyed before the context