Add world representation as hittable list
This commit is contained in:
parent
68ae1fb265
commit
1eeb328b60
4 changed files with 39 additions and 14 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue