Move ShapeType into the Shape object.
This commit is contained in:
@@ -24,7 +24,7 @@ protected:
|
||||
Tuple localNormalAt(Tuple point, Intersection *hit = nullptr);
|
||||
|
||||
public:
|
||||
Cube() : Shape(SHAPE_CUBE) { stats.addCube(); };
|
||||
Cube() : Shape(Shape::CUBE) { stats.addCube(); };
|
||||
|
||||
void dumpMe(FILE *fp);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user