Struct glfw::RenderContext
source · [−]pub struct RenderContext { /* private fields */ }
Expand description
A rendering context that can be shared between tasks.
Trait Implementations
sourceimpl Context for RenderContext
impl Context for RenderContext
sourcefn window_ptr(&self) -> *mut GLFWwindow
fn window_ptr(&self) -> *mut GLFWwindow
Returns the pointer to the underlying GLFWwindow
.
sourcefn swap_buffers(&mut self)
fn swap_buffers(&mut self)
Swaps the front and back buffers of the window. If the swap interval is greater than zero, the GPU driver waits the specified number of screen updates before swapping the buffers. Read more
sourcefn is_current(&self) -> bool
fn is_current(&self) -> bool
Returns true
if the window is the current context.
sourcefn make_current(&mut self)
fn make_current(&mut self)
Wrapper for glfwMakeContextCurrent
sourcefn should_close(&self) -> bool
fn should_close(&self) -> bool
Wrapper for glfwWindowShouldClose
.
sourcefn set_should_close(&mut self, value: bool)
fn set_should_close(&mut self, value: bool)
Wrapper for glfwSetWindowShouldClose
.
sourcefn post_empty_event(&self)
fn post_empty_event(&self)
Wrapper for glfwPostEmptyEvent
.
sourceimpl Debug for RenderContext
impl Debug for RenderContext
sourceimpl HasRawWindowHandle for RenderContext
impl HasRawWindowHandle for RenderContext
fn raw_window_handle(&self) -> RawWindowHandle
impl Send for RenderContext
Auto Trait Implementations
impl !RefUnwindSafe for RenderContext
impl !Sync for RenderContext
impl Unpin for RenderContext
impl !UnwindSafe for RenderContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more