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.
learn-wgpu/code/showcase/snow/src/main.rs

22 lines
478 B
Rust

1 year ago
use anyhow::{Error, Result};
3 years ago
1 year ago
struct Snow {}
3 years ago
impl framework::Demo for Snow {
fn init(display: &framework::Display) -> Result<Self, Error> {
1 year ago
Ok(Self {})
3 years ago
}
1 year ago
fn process_mouse(&mut self, dx: f64, dy: f64) {}
3 years ago
1 year ago
fn resize(&mut self, display: &framework::Display) {}
3 years ago
1 year ago
fn update(&mut self, display: &framework::Display, dt: std::time::Duration) {}
3 years ago
1 year ago
fn render(&mut self, display: &mut framework::Display) {}
3 years ago
}
fn main() {
framework::run::<Snow>();
}