Paper Mario (N64) modding IDE
starhaven.dev/studio
1pub struct StarStudio {
2}
3
4impl Default for StarStudio {
5 fn default() -> Self {
6 Self {
7 }
8 }
9}
10
11impl StarStudio {
12 /// Called once before the first frame.
13 pub fn new(cc: &eframe::CreationContext<'_>) -> Self {
14 // This is also where you can customize the look and feel of egui using
15 // `cc.egui_ctx.set_visuals` and `cc.egui_ctx.set_fonts`.
16
17 Default::default()
18 }
19}
20
21impl eframe::App for StarStudio {
22 fn update(&mut self, _ctx: &egui::Context, frame: &mut eframe::Frame) {
23 // The backend is guaranteed to be Vulkan so we can punch through the HAL to do our own thing.
24 let wgpu = frame.wgpu_render_state().expect("eframe backend is not wgpu");
25 let device = unsafe { wgpu.device.as_hal::<wgpu::hal::api::Vulkan>() }.expect("wgpu backend is not vulkan");
26 dbg!(device.enabled_device_extensions());
27 // TODO: set up a PaintCallback to render game to
28 }
29}