pub struct BackendContext { /* private fields */ }Expand description
GPU Context representation.
Trait Implementations§
Source§impl HasContext for Context
impl HasContext for Context
Source§fn new(builder: &ContextBuilder) -> Self
fn new(builder: &ContextBuilder) -> Self
Creates a new
Context.Source§fn run(&mut self) -> bool
fn run(&mut self) -> bool
Runs the
Context and returns false if the Context is no longer available.Source§fn make_current(&self) -> Result<(), ContextError>
fn make_current(&self) -> Result<(), ContextError>
Makes the
Context current for the current thread.Source§fn swap_buffers(&self) -> Result<(), ContextError>
fn swap_buffers(&self) -> Result<(), ContextError>
Swap buffers for presenting in the
ContextDisplay.Source§fn inner_dimensions(&self) -> (usize, usize)
fn inner_dimensions(&self) -> (usize, usize)
Gets the inner dimensions of the
ContextDisplay.Source§impl HasGLContext for Context
impl HasGLContext for Context
Source§fn gl_context(&self) -> GLContext
fn gl_context(&self) -> GLContext
Gets the
GLContext.Auto Trait Implementations§
impl !Freeze for Context
impl !RefUnwindSafe for Context
impl !Send for Context
impl !Sync for Context
impl Unpin for Context
impl !UnwindSafe for Context
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more