use bevy::{ diagnostic::{DiagnosticsStore, FrameTimeDiagnosticsPlugin}, math::{DVec2, DVec4}, prelude::*, }; use bevy_egui::{ egui::{self, RichText}, EguiContexts, EguiPlugin, }; use bevy_pixel_buffer::prelude::*; fn main() { App::new() .add_plugins(( DefaultPlugins, EguiPlugin, FrameTimeDiagnosticsPlugin::default(), PixelBufferPlugin, )) .add_systems( Startup, PixelBufferBuilder::new() .with_size((1280, 720)) .with_fill(Fill::window().with_stretch(true)) .setup(), ) .add_systems(Update, (process_input, ui)) .add_systems(Update, render.after(process_input)) .insert_resource(Params::default()) .run(); } fn process_input( mut params: ResMut, keyboard_input: Res>, time: Res