Skip to content

Commit f042ff1

Browse files
committed
raymax -> rayflex
1 parent 9931c19 commit f042ff1

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "raymax"
2+
name = "rayflex"
33
version = "0.1.0"
44
edition = "2024"
55
authors = ["Maxime Austruy <[email protected]>"]

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
[![CI](https://github.com/mx4/raymax/actions/workflows/ci.yml/badge.svg)](https://github.com/mx4/raymax/actions/workflows/ci.yml)
1+
[![CI](https://github.com/mx4/rayflex/actions/workflows/ci.yml/badge.svg)](https://github.com/mx4/rayflex/actions/workflows/ci.yml)
22

3-
### RAYMAX
3+
### RAYFLEX
44

55
Rust implementation of a ray-tracer and path-tracer.
66

src/app.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const WIDTH: usize = 600;
1717
const HEIGHT: usize = 600;
1818
const 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(),

src/main.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ use std::sync::atomic::Ordering;
99
use std::sync::Arc;
1010
use structopt::StructOpt;
1111

12-
use raymax::render::RenderConfig;
13-
use raymax::scene::generate_scene;
14-
use raymax::scene::load_scene;
12+
use rayflex::render::RenderConfig;
13+
use rayflex::scene::generate_scene;
14+
use rayflex::scene::load_scene;
1515

1616
#[cfg(not(target_arch = "wasm32"))]
1717
#[derive(StructOpt, Debug)]
18-
#[structopt(name = "raymax", about = "ray/path-tracer")]
18+
#[structopt(name = "rayflex", about = "ray/path-tracer")]
1919
struct Options {
2020
#[structopt(long, default_value = "pic.png")]
2121
img_file: PathBuf,
@@ -69,7 +69,7 @@ fn print_opt(opt: &Options) {
6969

7070
#[cfg(target_arch = "wasm32")]
7171
fn main() -> std::io::Result<()> {
72-
raymax::egui_main();
72+
rayflex::egui_main();
7373
return Ok(());
7474
}
7575

@@ -87,7 +87,7 @@ fn main() -> std::io::Result<()> {
8787
.expect("ctrl-c");
8888

8989
if opt.use_ui {
90-
raymax::egui_main();
90+
rayflex::egui_main();
9191
return Ok(());
9292
}
9393

0 commit comments

Comments
 (0)