diff options
| author | Sakarias Johansson <sakarias.johansson@goodbyekansas.com> | 2023-03-13 22:00:44 +0100 |
|---|---|---|
| committer | Sakarias Johansson <sakarias.johansson@goodbyekansas.com> | 2023-03-13 22:23:18 +0100 |
| commit | f19c8cc40c5caf8abb4f04aaf9f91ec3a8c1ccbc (patch) | |
| tree | a54a074ece82eafd8793cd0fb68a1b938286c923 /racer-tracer/src/error.rs | |
| parent | 3cabf77da8b9681ed9683fe92c23054d6f49d848 (diff) | |
| download | racer-tracer-f19c8cc40c5caf8abb4f04aaf9f91ec3a8c1ccbc.tar.gz racer-tracer-f19c8cc40c5caf8abb4f04aaf9f91ec3a8c1ccbc.tar.xz racer-tracer-f19c8cc40c5caf8abb4f04aaf9f91ec3a8c1ccbc.zip | |
📸 Add Camera defocus blur + Other
Just wanted to add defocus blur but ended up changing a bunch of other
this as well.
- Moved scenes to a separate folder.
- Updated readme with more pretty images.
- Add interface for loading scenes. There is currently one for yaml
and another if you want a slightly random scene.
- Add image action to decide what to do with the final image once its
rendered. Currently supports just showing the buffer until you press
the render buffer again and saving the image as `png`.
- When you use nix shell you will be dropped in the proper folder so
you can just do cargo build etc without having to do `cd`.
Diffstat (limited to 'racer-tracer/src/error.rs')
| -rw-r--r-- | racer-tracer/src/error.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/racer-tracer/src/error.rs b/racer-tracer/src/error.rs index 1725d1a..e0e0934 100644 --- a/racer-tracer/src/error.rs +++ b/racer-tracer/src/error.rs @@ -20,6 +20,9 @@ pub enum TracerError { #[error("Config Error ({0}): {1}")] Configuration(String, String), + #[error("Argument parsing Error: {0}")] + ArgumentParsingError(String), + #[error("Unknown Material {0}.")] UnknownMaterial(String), @@ -37,6 +40,9 @@ pub enum TracerError { #[error("Image save error: {0}")] ImageSave(String), + + #[error("Scene failed to load: {0}")] + SceneLoad(String), } impl From<TracerError> for i32 { @@ -57,6 +63,8 @@ impl From<TracerError> for i32 { TracerError::CancelEvent => 10, TracerError::Generic(_) => 11, TracerError::ImageSave(_) => 12, + TracerError::SceneLoad(_) => 13, + TracerError::ArgumentParsingError(_) => 14, } } } |
