Add world representation as hittable list

This commit is contained in:
Phireh 2021-08-21 15:59:44 +02:00
commit 1eeb328b60
4 changed files with 39 additions and 14 deletions

View file

@ -13,7 +13,8 @@ struct hittable_list : hittable {
/* Attributes */
std::vector<shared_ptr<hittable>> objects;
/* Constructor */
/* Constructors */
hittable_list () {}
hittable_list(shared_ptr<hittable> h) { add(h); }
/* Methods */