[−][src]Struct offscreen_gl_context::NativeGLContext
Methods
impl NativeGLContext
[src]
pub fn new(
share_context: Option<&*const c_void>,
api_version: GLVersion,
display: *mut Display,
drawable: c_ulong,
framebuffer_config: *const c_void,
extensions: String
) -> Result<NativeGLContext, &'static str>
[src]
share_context: Option<&*const c_void>,
api_version: GLVersion,
display: *mut Display,
drawable: c_ulong,
framebuffer_config: *const c_void,
extensions: String
) -> Result<NativeGLContext, &'static str>
pub fn as_native_glx_context(&self) -> *const c_void
[src]
Trait Implementations
impl NativeGLContextMethods for NativeGLContext
[src]
type Handle = NativeGLContextHandle
fn get_proc_address(addr: &str) -> *const ()
[src]
fn current_handle() -> Option<Self::Handle>
[src]
fn current() -> Option<NativeGLContext>
[src]
fn create_shared(
with: Option<&Self::Handle>,
api_type: &GlType,
api_version: GLVersion
) -> Result<NativeGLContext, &'static str>
[src]
with: Option<&Self::Handle>,
api_type: &GlType,
api_version: GLVersion
) -> Result<NativeGLContext, &'static str>
fn is_current(&self) -> bool
[src]
fn handle(&self) -> NativeGLContextHandle
[src]
fn make_current(&self) -> Result<(), &'static str>
[src]
fn unbind(&self) -> Result<(), &'static str>
[src]
fn create_shared_with_dispatcher(
with: Option<&Self::Handle>,
api_type: &GlType,
api_version: GLVersion,
_dispatcher: Option<Box<dyn GLContextDispatcher>>
) -> Result<Self, &'static str>
[src]
with: Option<&Self::Handle>,
api_type: &GlType,
api_version: GLVersion,
_dispatcher: Option<Box<dyn GLContextDispatcher>>
) -> Result<Self, &'static str>
fn create_headless(
api_type: &GlType,
api_version: GLVersion
) -> Result<Self, &'static str>
[src]
api_type: &GlType,
api_version: GLVersion
) -> Result<Self, &'static str>
fn is_osmesa(&self) -> bool
[src]
impl Drop for NativeGLContext
[src]
Auto Trait Implementations
impl Unpin for NativeGLContext
impl !Sync for NativeGLContext
impl !Send for NativeGLContext
impl UnwindSafe for NativeGLContext
impl RefUnwindSafe for NativeGLContext
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,