[−][src]Struct luminance_glfw::GlfwSurface
GLFW surface.
This type implements GraphicsContext
so that you can use it to perform render with
luminance.
Trait Implementations
impl GraphicsContext for GlfwSurface
[src]
fn state(&self) -> &Rc<RefCell<GraphicsState>>
[src]
fn pipeline_builder(&self) -> Builder
[src]
impl Surface for GlfwSurface
[src]
type Error = GlfwSurfaceError
Type of surface errors.
type Event = WindowEvent
Type of events.
fn new(
dim: WindowDim,
title: &str,
win_opt: WindowOpt
) -> Result<Self, Self::Error>
[src]
dim: WindowDim,
title: &str,
win_opt: WindowOpt
) -> Result<Self, Self::Error>
fn opts(&self) -> &WindowOpt
[src]
fn set_cursor_mode(&mut self, mode: CursorMode) -> &mut Self
[src]
fn set_num_samples<S>(&mut self, samples: S) -> &mut Self where
S: Into<Option<u32>>,
[src]
S: Into<Option<u32>>,
fn size(&self) -> [u32; 2]
[src]
fn wait_events<'a>(&'a mut self) -> Box<dyn Iterator<Item = Self::Event> + 'a>
[src]
fn poll_events<'a>(&'a mut self) -> Box<dyn Iterator<Item = Self::Event> + 'a>
[src]
fn swap_buffers(&mut self)
[src]
fn width(&self) -> u32
[src]
fn height(&self) -> u32
[src]
fn back_buffer(
&mut self
) -> Result<Framebuffer<Flat, Dim2, (), ()>, Self::Error>
[src]
&mut self
) -> Result<Framebuffer<Flat, Dim2, (), ()>, Self::Error>
Auto Trait Implementations
impl !Send for GlfwSurface
impl Unpin for GlfwSurface
impl !Sync for GlfwSurface
impl !RefUnwindSafe for GlfwSurface
impl !UnwindSafe for GlfwSurface
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,