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
title: String
width: usize
height: usize
gl_window: GlWindow
renderer: Renderer
Methods
impl App
[src]
fn new(
title: String,
width: usize,
height: usize,
multisampling: u16,
fullscreen: bool
) -> App
[src]
title: String,
width: usize,
height: usize,
multisampling: u16,
fullscreen: bool
) -> App
Creates new App with OpenGL 4.5 core profile.
fn poll_events(&mut self) -> Vec<Event>
[src]
Polls events.
fn poll_window_events(&mut self) -> Vec<WindowEvent>
[src]
Polls window events.
fn swap_buffers(&mut self)
[src]
Swaps buffers.