Continue working work optimiser.

This commit is contained in:
Godzil
2020-03-11 19:35:08 +00:00
parent 420203e95d
commit 0aa949c60b
6 changed files with 263 additions and 8 deletions

View File

@@ -39,7 +39,8 @@ public:
void addObject(Shape *s);
void removeObject(Shape *s);
Shape *operator[](const int p) { return this->objectList[p]; };
Shape *operator[](const int p) { return this->getObject(p); };
Shape *getObject(const int p) { return this->objectList[p]; };
Shape *getUnboxable(const int p) { return this->unboxableObjectList[p]; };
Intersect intersect(Ray r);