Struct glium::backend::glutin::GlutinBackend
source · pub struct GlutinBackend(_);
Expand description
An implementation of the Backend
trait for glutin.
Trait Implementations§
source§impl Backend for GlutinBackend
impl Backend for GlutinBackend
source§fn swap_buffers(&self) -> Result<(), SwapBuffersError>
fn swap_buffers(&self) -> Result<(), SwapBuffersError>
Swaps buffers at the end of a frame.
source§unsafe fn get_proc_address(&self, symbol: &str) -> *const c_void
unsafe fn get_proc_address(&self, symbol: &str) -> *const c_void
Returns the address of an OpenGL function. Read more
source§fn get_framebuffer_dimensions(&self) -> (u32, u32)
fn get_framebuffer_dimensions(&self) -> (u32, u32)
Returns the dimensions of the window, or screen, etc.
source§fn is_current(&self) -> bool
fn is_current(&self) -> bool
Returns true if the OpenGL context is the current one in the thread.
source§unsafe fn make_current(&self)
unsafe fn make_current(&self)
Makes the OpenGL context the current context in the current thread.
source§impl Clone for GlutinBackend
impl Clone for GlutinBackend
source§fn clone(&self) -> GlutinBackend
fn clone(&self) -> GlutinBackend
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Deref for GlutinBackend
impl Deref for GlutinBackend
§type Target = Rc<RefCell<Takeable<ContextWrapper<PossiblyCurrent, Window>>>>
type Target = Rc<RefCell<Takeable<ContextWrapper<PossiblyCurrent, Window>>>>
The resulting type after dereferencing.
Auto Trait Implementations§
impl !RefUnwindSafe for GlutinBackend
impl !Send for GlutinBackend
impl !Sync for GlutinBackend
impl Unpin for GlutinBackend
impl !UnwindSafe for GlutinBackend
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