Struct mini_gl_fb::MiniGlFb[][src]

pub struct MiniGlFb {
    pub internal: Internal,
}

Main wrapper type.

Any fields accessed through internal are not considered a public API and may be subject to breaking API changes. Only access this field as a last resort if the MiniGlFb API fails to fit your exact use case.

Public methods of Internal are considered stable, but may be more complicated to use.

Basic Usage

See the update_buffer and persist methods.

Fields

Methods

impl MiniGlFb
[src]

Updates the backing buffer and draws immediately (swaps buffers).

The main drawing function.

Keeps the window open until the user closes it.

persist implementation.

When redraw is true, redraws as fast as possible. This function is primarily for debugging.

Need full access to Glutin's event handling? No problem!

Hands you the event loop and the window we created, so you can handle events however you want, and the Framebuffer, so you can still draw easily!

IMPORTANT: You should make sure to render something before swapping buffers or the window may flash violently. You can call fb.redraw() directly before if you are unsure that an OpenGL draw call was issued. fb.update_buffer will typically issue a draw call.

Auto Trait Implementations

impl !Send for MiniGlFb

impl !Sync for MiniGlFb