mirror of https://github.com/sotrh/learn-wgpu
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
478 B
Rust
22 lines
478 B
Rust
use anyhow::{Error, Result};
|
|
|
|
struct Snow {}
|
|
|
|
impl framework::Demo for Snow {
|
|
fn init(display: &framework::Display) -> Result<Self, Error> {
|
|
Ok(Self {})
|
|
}
|
|
|
|
fn process_mouse(&mut self, dx: f64, dy: f64) {}
|
|
|
|
fn resize(&mut self, display: &framework::Display) {}
|
|
|
|
fn update(&mut self, display: &framework::Display, dt: std::time::Duration) {}
|
|
|
|
fn render(&mut self, display: &mut framework::Display) {}
|
|
}
|
|
|
|
fn main() {
|
|
framework::run::<Snow>();
|
|
}
|