summaryrefslogtreecommitdiff
path: root/bindgen/rust/celeritas-sys/src/egui_utils.rs
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-27 17:49:33 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-27 17:49:33 +1000
commit02fe2c010857e6c3734b3a354c4119f799947fc6 (patch)
treef6286df45e678929e4998dbfe9d770c58228fedd /bindgen/rust/celeritas-sys/src/egui_utils.rs
parentfb1778cb1c853f7fa48afffd256612eac6f387c8 (diff)
misc bindgen crate cleanup
Diffstat (limited to 'bindgen/rust/celeritas-sys/src/egui_utils.rs')
-rw-r--r--bindgen/rust/celeritas-sys/src/egui_utils.rs72
1 files changed, 0 insertions, 72 deletions
diff --git a/bindgen/rust/celeritas-sys/src/egui_utils.rs b/bindgen/rust/celeritas-sys/src/egui_utils.rs
deleted file mode 100644
index 5432d81..0000000
--- a/bindgen/rust/celeritas-sys/src/egui_utils.rs
+++ /dev/null
@@ -1,72 +0,0 @@
-// use egui_overlay::{EguiOverlay, OverlayApp};
-// use egui_render_three_d::ThreeDBackend;
-// use egui_window_glfw_passthrough::glfw::Context;
-// use egui_window_glfw_passthrough::{GlfwBackend, GlfwConfig};
-
-// use crate::Core_Bringup;
-
-// // struct CustomEguiOverlay {
-// // backend:
-// // }
-
-// fn init() {
-// let mut glfw_backend = GlfwBackend::new(GlfwConfig::default());
-// let mut glfw_window_ptr = glfw_backend.window.window_ptr();
-
-// unsafe {
-// // Cast the window pointer to the expected type
-// let window_ptr = glfw_window_ptr as *mut crate::GLFWwindow;
-// Core_Bringup(window_ptr);
-// };
-// }
-
-// /// After implementing [`EguiOverlay`], just call this function with your app data
-// pub fn start<T: EguiOverlay + 'static>(user_data: T) {
-// let mut glfw_backend = GlfwBackend::new(GlfwConfig {
-// // this closure will be called before creating a window
-// glfw_callback: Box::new(|gtx| {
-// // some defualt hints. it is empty atm, but in future we might add some convenience hints to it.
-// (egui_window_glfw_passthrough::GlfwConfig::default().glfw_callback)(gtx);
-// // scale the window size based on monitor scale. as 800x600 looks too small on a 4k screen, compared to a hd screen in absolute pixel sizes.
-// gtx.window_hint(egui_window_glfw_passthrough::glfw::WindowHint::ScaleToMonitor(true));
-// }),
-// opengl_window: Some(true), // macos doesn't support opengl.
-// transparent_window: Some(false),
-// window_title: "Celeritas egui".into(),
-// ..Default::default()
-// });
-
-// // always on top
-// // glfw_backend.window.set_floating(true);
-// // disable borders/titlebar
-// // glfw_backend.window.set_decorated(false);
-
-// let latest_size = glfw_backend.window.get_framebuffer_size();
-// let latest_size = [latest_size.0 as _, latest_size.1 as _];
-
-// let default_gfx_backend = {
-// ThreeDBackend::new(
-// egui_render_three_d::ThreeDConfig {
-// ..Default::default()
-// },
-// |s| glfw_backend.get_proc_address(s),
-// latest_size,
-// )
-// };
-
-// let glfw_window_ptr = glfw_backend.window.window_ptr();
-// unsafe {
-// // Cast the window pointer to the expected type
-// let window_ptr = glfw_window_ptr as *mut crate::GLFWwindow;
-// Core_Bringup(window_ptr);
-// };
-
-// let overlap_app = OverlayApp {
-// user_data,
-// egui_context: Default::default(),
-// default_gfx_backend,
-// glfw_backend,
-// };
-
-// overlap_app.enter_event_loop();
-// }