mirror of
https://github.com/vonhyou/ray-tracer-comp371.git
synced 2025-08-13 17:08:04 +00:00
update RT class
This commit is contained in:
parent
e308c901f5
commit
2f4d439e97
2 changed files with 7 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
class RayTracer {
|
||||
public:
|
||||
RayTracer(const nlohmann::json &);
|
||||
RayTracer(const nlohmann::json &j) : json(j) {}
|
||||
void run();
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue