Struct glfw::RenderContext
source · pub struct RenderContext { /* private fields */ }
Expand description
A rendering context that can be shared between tasks.
Trait Implementations§
source§impl Context for RenderContext
impl Context for RenderContext
source§fn window_ptr(&self) -> *mut GLFWwindow
fn window_ptr(&self) -> *mut GLFWwindow
Returns the pointer to the underlying
GLFWwindow
.source§fn 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
source§fn is_current(&self) -> bool
fn is_current(&self) -> bool
Returns
true
if the window is the current context.source§fn make_current(&mut self)
fn make_current(&mut self)
Wrapper for
glfwMakeContextCurrent
source§fn should_close(&self) -> bool
fn should_close(&self) -> bool
Wrapper for
glfwWindowShouldClose
.source§fn set_should_close(&mut self, value: bool)
fn set_should_close(&mut self, value: bool)
Wrapper for
glfwSetWindowShouldClose
.source§fn post_empty_event(&self)
fn post_empty_event(&self)
Wrapper for
glfwPostEmptyEvent
.