Struct luminance_glfw::surface::GlfwSurface [−][src]
pub struct GlfwSurface { /* fields omitted */ }
GLFW surface.
This type implements GraphicsContext
so that you can use it to perform render with
luminance.
Trait Implementations
impl GraphicsContext for GlfwSurface
[src]
impl GraphicsContext for GlfwSurface
fn state(&self) -> &Rc<RefCell<GraphicsState>>
[src]
fn state(&self) -> &Rc<RefCell<GraphicsState>>
Get access to the graphics state of this context. Read more
fn swap_buffers(&mut self)
[src]
fn swap_buffers(&mut self)
Swap the back and front buffers.
fn pipeline_builder(&self) -> Builder
[src]
fn pipeline_builder(&self) -> Builder
Create a new pipeline builder. Read more
impl Surface for GlfwSurface
[src]
impl Surface for GlfwSurface
type Event = WindowEvent
Type of events.
type Error = GlfwSurfaceError
Type of surface errors.
fn new(
dim: WindowDim,
title: &str,
win_opt: WindowOpt
) -> Result<Self, Self::Error>
[src]
fn new(
dim: WindowDim,
title: &str,
win_opt: WindowOpt
) -> Result<Self, Self::Error>
Create a surface along with its associated event stream and bootstrap a luminance environment that it lives as long as the surface lives. Read more
fn size(&self) -> [u32; 2]
[src]
fn size(&self) -> [u32; 2]
Size of the surface’s framebuffer.
ⓘImportant traits for Box<R>fn wait_events<'a>(&'a mut self) -> Box<Iterator<Item = Self::Event> + 'a>
[src]
ⓘImportant traits for Box<R>
fn wait_events<'a>(&'a mut self) -> Box<Iterator<Item = Self::Event> + 'a>
Get an iterator over events by blocking until the first event happens.
ⓘImportant traits for Box<R>fn poll_events<'a>(&'a mut self) -> Box<Iterator<Item = Self::Event> + 'a>
[src]
ⓘImportant traits for Box<R>
fn poll_events<'a>(&'a mut self) -> Box<Iterator<Item = Self::Event> + 'a>
Get an iterator over events without blocking if no event is there.
fn width(&self) -> u32
[src]
fn width(&self) -> u32
Width of the surface’s framebuffer. Read more
fn height(&self) -> u32
[src]
fn height(&self) -> u32
Height of the surface’s framebuffer. Read more
Auto Trait Implementations
impl !Send for GlfwSurface
impl !Send for GlfwSurface
impl !Sync for GlfwSurface
impl !Sync for GlfwSurface