mirror of
https://github.com/vonhyou/ray-tracer-comp371.git
synced 2025-06-08 15:31:59 +00:00
rename method names
This commit is contained in:
parent
48f00d194f
commit
fd2b57b4ae
2 changed files with 13 additions and 7 deletions
6
src/Parser.cc
Normal file
6
src/Parser.cc
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#include "Parser.h"
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
static Scene *parseScene(const nlohmann::json &j) {
|
||||||
|
string name = j["filename"].get<string>();
|
||||||
|
}
|
14
src/Parser.h
14
src/Parser.h
|
@ -9,15 +9,15 @@
|
||||||
|
|
||||||
class Parser {
|
class Parser {
|
||||||
public:
|
public:
|
||||||
static Geometry *parseGeometry(const nlohmann::json &);
|
static Geometry *getGeometry(const nlohmann::json &);
|
||||||
static Light *parseLight(const nlohmann::json &);
|
static Light *getLight(const nlohmann::json &);
|
||||||
static Scene *parseScene(const nlohmann::json &);
|
static Scene *getScene(const nlohmann::json &);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static PointLight *parsePointLight(const nlohmann::json &);
|
static PointLight *getPointLight(const nlohmann::json &);
|
||||||
static AreaLight *parseAreaLight(const nlohmann::json &);
|
static AreaLight *getAreaLight(const nlohmann::json &);
|
||||||
static Rectangle *parseRectangle(const nlohmann::json &);
|
static Rectangle *getRectangle(const nlohmann::json &);
|
||||||
static Sphere *parseSphere(const nlohmann::json &);
|
static Sphere *getSphere(const nlohmann::json &);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // !PARSER_H_
|
#endif // !PARSER_H_
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue