Struct luminance_glfw::GlfwSurface[][src]

pub struct GlfwSurface {
    pub events_rx: Receiver<(f64, WindowEvent)>,
    pub context: GL33Context,
}

GLFW surface.

This type is a helper that exposes two important concepts: the GLFW event receiver that you can use it with to poll events and the GL33Context, which allows you to perform the rendering part.

Fields

events_rx: Receiver<(f64, WindowEvent)>

Wrapped GLFW events queue.

context: GL33Context

Wrapped luminance context.

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.

Trait Implementations

impl Debug for GlfwSurface[src]

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.