Struct glfw::RenderContext [−][src]
pub struct RenderContext { /* fields omitted */ }
A rendering context that can be shared between tasks.
Trait Implementations
impl Send for RenderContext
[src]
impl Send for RenderContext
impl Context for RenderContext
[src]
impl Context for RenderContext
fn window_ptr(&self) -> *mut GLFWwindow
[src]
fn window_ptr(&self) -> *mut GLFWwindow
Returns the pointer to the underlying GLFWwindow
.
fn swap_buffers(&mut self)
[src]
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
fn is_current(&self) -> bool
[src]
fn is_current(&self) -> bool
Returns true
if the window is the current context.
fn make_current(&mut self)
[src]
fn make_current(&mut self)
Wrapper for glfwMakeContextCurrent
Auto Trait Implementations
impl !Sync for RenderContext
impl !Sync for RenderContext