@@ -17,7 +17,7 @@ const WIDTH: usize = 600;
1717const HEIGHT : usize = 600 ;
1818const SIDE_PANEL_WIDTH : usize = 250 ;
1919
20- pub struct RaymaxApp {
20+ pub struct RayflexApp {
2121 scene_file : String ,
2222 output_file : String ,
2323 height : usize ,
@@ -33,7 +33,7 @@ pub struct RaymaxApp {
3333 scene_choice : usize ,
3434}
3535
36- impl Default for RaymaxApp {
36+ impl Default for RayflexApp {
3737 fn default ( ) -> Self {
3838 Self {
3939 scene_file : "scenes/cornell-box.json" . to_owned ( ) ,
@@ -86,7 +86,7 @@ fn start_rendering(
8686 rendering_needs_stop. store ( false , Ordering :: SeqCst ) ;
8787}
8888
89- impl RaymaxApp {
89+ impl RayflexApp {
9090 pub fn new ( _cc : & eframe:: CreationContext < ' _ > ) -> Self {
9191 Default :: default ( )
9292 }
@@ -153,9 +153,9 @@ pub fn egui_main() {
153153 ..eframe:: NativeOptions :: default ( )
154154 } ;
155155 eframe:: run_native (
156- "raymax " ,
156+ "rayflex " ,
157157 native_options,
158- Box :: new ( |cc| Box :: new ( RaymaxApp :: new ( cc) ) ) ,
158+ Box :: new ( |cc| Box :: new ( RayflexApp :: new ( cc) ) ) ,
159159 ) ;
160160}
161161
@@ -171,14 +171,14 @@ pub fn egui_main() {
171171 eframe:: start_web (
172172 "the_canvas_id" , // hardcode it
173173 web_options,
174- Box :: new ( |cc| Box :: new ( RaymaxApp :: new ( cc) ) ) ,
174+ Box :: new ( |cc| Box :: new ( RayflexApp :: new ( cc) ) ) ,
175175 )
176176 . await
177177 . expect ( "failed to start eframe" ) ;
178178 } ) ;
179179}
180180
181- impl eframe:: App for RaymaxApp {
181+ impl eframe:: App for RayflexApp {
182182 fn update ( & mut self , ctx : & egui:: Context , _frame : & mut eframe:: Frame ) {
183183 let vec_str = [
184184 "cornell-box" . to_owned ( ) ,
0 commit comments