INNER CODE UNIT · Rust

cleanup

wkwan/flo · src/egui_integration.rs:89

    pub fn cleanup(&mut self) {
        // Renderer cleanup is handled in Drop trait
    }
}

// Bevy resource wrapper for egui context
// This holds the raw input and a reference to the context in the renderer
#[derive(Resource)]
pub struct EguiContext {
    pub raw_input: egui::RawInput,
    pub has_context: bool, // Track if renderer has been initialized with egui
    pub scale_factor: f32, // Store the current display scale factor
}

impl Default for EguiContext {
    fn default() -> Self {
        Self {
            raw_input: egui::RawInput::default(),

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…