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

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

Initialize GLFW to provide a luminance environment.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.