bracket-terminal 0.8.7

ASCII/Codepage 437 terminal emulator with a game loop. Defaults to OpenGL, also support WebGPU (for Vulkan/Metal/WGPU), Curses and Crossterm for output. Part of the bracket-lib family.
Documentation
//! Defines the BACKEND static used by wgpu.

use crate::hal::{scaler::ScreenScaler, ConsoleBacking, PlatformGL};
use lazy_static::*;
use parking_lot::Mutex;

lazy_static! {
    pub static ref BACKEND: Mutex<PlatformGL> = Mutex::new(PlatformGL {
        context_wrapper: None,
        wgpu: None,
        resize_scaling: false,
        resize_request: None,
        request_screenshot: None,
        frame_sleep_time: None,
        screen_scaler: ScreenScaler::default()
    });
}

lazy_static! {
    pub(crate) static ref CONSOLE_BACKING: Mutex<Vec<ConsoleBacking>> = Mutex::new(Vec::new());
}