Struct mallumo::App [] [src]

pub struct App {
    pub title: String,
    pub width: usize,
    pub height: usize,
    pub gl_window: GlWindow,
    pub renderer: Renderer,
    // some fields omitted
}

Holds window and OpenGL context.

You almost always want to use this as this abstracts the boilerplate needed to even start using OpenGL while also providing basic event handling functionality.

Fields

Methods

impl App
[src]

[src]

Creates new App with OpenGL 4.5 core profile.

[src]

Polls events.

[src]

Polls window events.

[src]

Swaps buffers.