minigw
A convenient Rust library for creating cross platform windows and displaying pixel buffers. It also makes it easy to get keyboard and mouse input. There is full imgui rendering support build-in.

Usage
Add this to your Cargo.toml:
[]
= "0.0.2"
This example shows how to create a window and how to draw a gradient every frame.
extern crate minigw;
Input Handling & ImGui
Input can be handled by querying the state of the input struct. This example will toggle the cursor state between unlocked and locked every time the Space Bar has been pressed. Debug UI can be drawn by directly accessing the imgui::Ui struct.
extern crate minigw;
use imgui;
Framebuffer type
The framebuffer type can be defined when creating a new window. u8 works best for performance reasons but other supported types are: i8, u16, i16, u32, i32 and f32. The same gradient example but now with an f32 framebuffer can be seen below.
extern crate minigw;
Planned features
- Gamma correction
- Window icon
- Framebuffer scaling
- f32 (HDR) colour conversion
- Adjustable colour grading
- Dedicated render thread
License
This project is licensed under the MIT license (LICENSE-MIT or https://opensource.org/licenses/MIT).