mirror of
https://github.com/vonhyou/ray-tracer-comp371.git
synced 2025-08-15 10:28:04 +00:00
change RayTracer class constructor param
This commit is contained in:
parent
62652955cb
commit
7ede9f694d
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
RayTracer::RayTracer(nlohmann::json json)
|
RayTracer::RayTracer(const nlohmann::json &json)
|
||||||
: json(json), scene(Scene(json["output"])) {}
|
: json(json), scene(Scene(json["output"])) {}
|
||||||
|
|
||||||
void RayTracer::render() {
|
void RayTracer::render() {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
class RayTracer {
|
class RayTracer {
|
||||||
public:
|
public:
|
||||||
RayTracer(nlohmann::json);
|
RayTracer(const nlohmann::json &);
|
||||||
void render();
|
void render();
|
||||||
void run();
|
void run();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue