#[repr(C)]
pub struct CBackend<SB, GPA, GFD, IC, MC> { /* fields omitted */ }
pub fn new( data: *mut c_void, swap_buffers: SB, get_proc_address: GPA, get_framebuffer_dimensions: GFD, is_current: IC, make_current: MC ) -> Self | [src] |
The lifecycle of this object must match the OpenGLContext
lifetime and thus is unsafe to create.
Swaps buffers at the end of a frame.
Returns the address of an OpenGL function. Read more
Returns the dimensions of the window, or screen, etc.
Returns true if the OpenGL context is the current one in the thread.
Makes the OpenGL context the current context in the current thread.
impl<SB, GPA, GFD, IC, MC> !Send for CBackend<SB, GPA, GFD, IC, MC> | |
impl<SB, GPA, GFD, IC, MC> !Sync for CBackend<SB, GPA, GFD, IC, MC> | |
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
impl<T> Downcast for T where T: Any, | |
Convert Box<Trait>
(where Trait: Downcast
) to Box<Any>
. Box<Any>
can then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot generate &Any
's vtable from &Trait
's. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot generate &mut Any
's vtable from &mut Trait
's. Read more