4 releases (breaking)
0.4.0 | Feb 20, 2023 |
---|---|
0.3.0 | Feb 19, 2023 |
0.2.1 | Feb 17, 2023 |
0.2.0 |
|
0.1.0 | Feb 17, 2023 |
#1072 in Graphics APIs
97KB
885 lines
Wuple
docs crates.io
Simple, Preformant rendering on WGPU
Todos
- Performance Optimizations
lib.rs
:
Simple, Performant rendering on WGPU
Example
use wuple::App;
pub struct Example {}
impl App for Example {
fn render(&mut self, painter: &mut wuple::painter::Painter, builder: &mut wuple::builder::Builder, _info: &wuple::info::Info) {
// Draw a Rectangle
painter.draw(builder.rect(
(-0.5, -0.5), (0.5, 0.5),
wuple::builder::Draw::Color(wuple::painter::color::WHITE)
));
}
fn event(&mut self, event: &winit::event::WindowEvent) -> bool {
// Handle Event
false
}
fn update(&mut self, _info: &wuple::info::Info) {
// Do some Updates before Rendering
}
}
Example {}.run(true);
Dependencies
~6–38MB
~597K SLoC