add geometry parser

This commit is contained in:
Shuo Feng 2024-02-15 18:02:19 -05:00
parent a42eae91de
commit 9f63434b12
Signed by: sfeng
GPG key ID: 1E83AE6CD1C037B1
2 changed files with 56 additions and 2 deletions

View file

@ -16,8 +16,12 @@ public:
private:
static PointLight *getPointLight(const nlohmann::json &);
static AreaLight *getAreaLight(const nlohmann::json &);
static Rectangle *getRectangle(const nlohmann::json &);
static Sphere *getSphere(const nlohmann::json &);
static Rectangle *getRectangle(const nlohmann::json &, float, float, float,
const Vector3f &, const Vector3f &,
const Vector3f &, float);
static Sphere *getSphere(const nlohmann::json &, float, float, float,
const Vector3f &, const Vector3f &, const Vector3f &,
float);
};
#endif // !PARSER_H_