radiant-rs 0.15.0

Thread-safe Rust sprite rendering engine with a friendly API and custom shader support
Documentation
use radiant_utils as ru;
use radiant_rs::{Display, Color};

pub fn main() {

    // Create a display to render to
    let display = Display::builder().dimensions((640, 480)).vsync().title("Empty window example").build().unwrap();

    // A simple mainloop helper (just an optional utility function)
    ru::renderloop(|_| {

        // Clear current backbuffer frame (black)
        display.clear_frame(Color::BLACK);

        // Here would be a good place to draw stuff

        // Swap back- and frontbuffer, making the changes visible
        display.swap_frame();

        // Poll for new events on the display, exit loop if the window was closed
        !display.poll_events().was_closed()
    });
}