Add renderstat to get some info about rendering.
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include <shape.h>
|
||||
#include <ray.h>
|
||||
#include <intersect.h>
|
||||
#include <renderstat.h>
|
||||
|
||||
class Sphere : public Shape
|
||||
{
|
||||
@@ -20,7 +21,7 @@ protected:
|
||||
Tuple localNormalAt(Tuple point);
|
||||
|
||||
public:
|
||||
Sphere() : Shape(SHAPE_SPHERE) { };
|
||||
Sphere() : Shape(SHAPE_SPHERE) { stats.addSphere(); };
|
||||
/* All sphere are at (0, 0, 0) and radius 1 in the object space */
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user