mirror of
https://github.com/vonhyou/ray-tracer-comp371.git
synced 2025-06-08 07:22:01 +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>
|
||||
|
||||
RayTracer::RayTracer(nlohmann::json json)
|
||||
RayTracer::RayTracer(const nlohmann::json &json)
|
||||
: json(json), scene(Scene(json["output"])) {}
|
||||
|
||||
void RayTracer::render() {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
class RayTracer {
|
||||
public:
|
||||
RayTracer(nlohmann::json);
|
||||
RayTracer(const nlohmann::json &);
|
||||
void render();
|
||||
void run();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue