[−][src]Trait gpu::HasContext
A trait defining the GPUContext
interface.
Required methods
fn run(&mut self) -> bool
Runs the Context
and returns false
if the Context
is no longer available.
fn make_current(&self) -> Result<(), ContextError>
Makes the Context
current for the current thread.
fn swap_buffers(&self) -> Result<(), ContextError>
Swap buffers for presenting in the ContextDisplay
.
fn get_proc_address(&self, addr: &str) -> *const ()
OpenGL function dynamic loading.
fn inner_dimensions(&self) -> (usize, usize)
Gets the inner dimensions of the ContextDisplay
.