15 lines
270 B
Rust
15 lines
270 B
Rust
use iris::{prelude::*, winit::*};
|
|
|
|
fn main() {
|
|
DefaultApp::<State>::run();
|
|
}
|
|
|
|
struct State;
|
|
|
|
impl DefaultAppState for State {
|
|
fn new(ui: &mut Ui, _state: &UiState, _proxy: Proxy<Self::Event>) -> Self {
|
|
rect(Color::RED).set_root(ui);
|
|
Self
|
|
}
|
|
}
|