Trait glfw::Context[src]
pub trait Context { fn window_ptr(&self) -> *GLFWwindow; fn swap_buffers(&self) { ... } fn is_current(&self) -> bool { ... } fn make_current(&self) { ... } }
Methods common to renderable contexts
Required Methods
fn window_ptr(&self) -> *GLFWwindow
Returns the pointer to the underlying GLFWwindow
.
Provided Methods
fn swap_buffers(&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.
Wrapper for glfwSwapBuffers
.
fn is_current(&self) -> bool
Returns true
if the window is the current context.
fn make_current(&self)
Wrapper for glfwMakeContextCurrent