update RT class

This commit is contained in:
Shuo Feng 2024-02-13 22:36:04 -05:00
parent e308c901f5
commit 2f4d439e97
Signed by: sfeng
GPG key ID: 1E83AE6CD1C037B1
2 changed files with 7 additions and 4 deletions

View file

@ -1,6 +1,9 @@
#include "RayTracer.h"
#include "../external/simpleppm.h"
#include "Parser.h"
#include "Scene.h"
RayTracer::RayTracer(const nlohmann::json &json) : json(json) {}
void RayTracer::run() {}
void RayTracer::run() {
nlohmann::json sceneJson = this->json["output"][0];
Scene *sc = Parser::getScene(sceneJson);
}

View file

@ -5,7 +5,7 @@
class RayTracer {
public:
RayTracer(const nlohmann::json &);
RayTracer(const nlohmann::json &j) : json(j) {}
void run();
private: