gif plan, start eframe
This commit is contained in:
+22
@@ -0,0 +1,22 @@
|
||||
use eframe::egui;
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct AniShio {}
|
||||
|
||||
impl AniShio {
|
||||
pub fn new(cc: &eframe::CreationContext<'_>) -> Self {
|
||||
// Customize egui here with cc.egui_ctx.set_fonts and cc.egui_ctx.set_global_style.
|
||||
// Restore app state using cc.storage (requires the "persistence" feature).
|
||||
// Use the cc.gl (a glow::Context) to create graphics shaders and buffers that you can use
|
||||
// for e.g. egui::PaintCallback.
|
||||
Self::default()
|
||||
}
|
||||
}
|
||||
|
||||
impl eframe::App for AniShio {
|
||||
fn ui(&mut self, ui: &mut egui::Ui, frame: &mut eframe::Frame) {
|
||||
egui::CentralPanel::default().show_inside(ui, |ui| {
|
||||
ui.heading("Hello World!");
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user