raytracer
Parallel Ray Tracer written from scratch (no graphics API).
Loading...
Searching...
No Matches
scene.h
Go to the documentation of this file.
1
#pragma once
2
#include <nlohmann/json.hpp>
3
#include "
common/util/point.h
"
4
5
namespace
raytracer::mandelbrot
6
{
7
using
json
= nlohmann::json;
8
12
struct
MandelbrotSceneConfig
13
{
14
common::Point
center
;
15
int
width
;
16
double
aspect_ratio
;
17
double
zoom
;
18
int
max_iterations
;
19
int
escape_boundary_squared
;
20
std::string
output_path
;
21
};
22
23
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE
(
MandelbrotSceneConfig
, center, width, aspect_ratio, zoom, max_iterations,
24
escape_boundary_squared, output_path);
25
29
struct
MandelbrotSceneSpace
30
{
31
double
left
;
32
double
right
;
33
double
bottom
;
34
double
top
;
35
int
height_pixels
;
36
int
width_pixels
;
37
common::Point
center
;
38
};
39
40
}
// namespace raytracer::mandelbrot
raytracer::mandelbrot
Definition
mandelbrot.cpp:14
raytracer::mandelbrot::json
nlohmann::json json
Definition
scene.h:7
raytracer::mandelbrot::NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE
NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE(MandelbrotSceneConfig, center, width, aspect_ratio, zoom, max_iterations, escape_boundary_squared, output_path)
point.h
raytracer::common::Point
Definition
point.h:7
raytracer::mandelbrot::MandelbrotSceneConfig
Definition
scene.h:13
raytracer::mandelbrot::MandelbrotSceneConfig::max_iterations
int max_iterations
Definition
scene.h:18
raytracer::mandelbrot::MandelbrotSceneConfig::width
int width
Definition
scene.h:15
raytracer::mandelbrot::MandelbrotSceneConfig::aspect_ratio
double aspect_ratio
Definition
scene.h:16
raytracer::mandelbrot::MandelbrotSceneConfig::zoom
double zoom
Definition
scene.h:17
raytracer::mandelbrot::MandelbrotSceneConfig::center
common::Point center
Definition
scene.h:14
raytracer::mandelbrot::MandelbrotSceneConfig::output_path
std::string output_path
Definition
scene.h:20
raytracer::mandelbrot::MandelbrotSceneConfig::escape_boundary_squared
int escape_boundary_squared
Definition
scene.h:19
raytracer::mandelbrot::MandelbrotSceneSpace
Definition
scene.h:30
raytracer::mandelbrot::MandelbrotSceneSpace::right
double right
Definition
scene.h:32
raytracer::mandelbrot::MandelbrotSceneSpace::top
double top
Definition
scene.h:34
raytracer::mandelbrot::MandelbrotSceneSpace::center
common::Point center
Definition
scene.h:37
raytracer::mandelbrot::MandelbrotSceneSpace::width_pixels
int width_pixels
Definition
scene.h:36
raytracer::mandelbrot::MandelbrotSceneSpace::bottom
double bottom
Definition
scene.h:33
raytracer::mandelbrot::MandelbrotSceneSpace::left
double left
Definition
scene.h:31
raytracer::mandelbrot::MandelbrotSceneSpace::height_pixels
int height_pixels
Definition
scene.h:35
mandelbrot
include
mandelbrot
scene.h
Generated by
1.15.0