[][src]Struct luminance_glfw::GlfwSurface

pub struct GlfwSurface {
    pub window: Window,
    pub events_rx: Receiver<(f64, WindowEvent)>,
    // some fields omitted
}

GLFW surface.

This type implements GraphicsContext so that you can use it to perform render with luminance.

Fields

window: Window

Wrapped GLFW window.

events_rx: Receiver<(f64, WindowEvent)>

Wrapped GLFW events queue.

Implementations

impl GlfwSurface[src]

pub fn new_gl33<S>(
    title: S,
    win_opt: WindowOpt
) -> Result<Self, GlfwSurfaceError> where
    S: AsRef<str>, 
[src]

Create a GlfwSurface.

pub fn back_buffer(
    &mut self
) -> Result<Framebuffer<GL33, Dim2, (), ()>, FramebufferError>
[src]

Get the back buffer.

Trait Implementations

impl GraphicsContext for GlfwSurface[src]

type Backend = GL33

Internal type used by the backend to cache, optimize and store data. This roughly represents the GPU data / context a backend implementation needs to work correctly. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.