Add renderstat to get some info about rendering.
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <tuple.h>
|
||||
#include <colour.h>
|
||||
#include <renderstat.h>
|
||||
|
||||
enum LightType
|
||||
{
|
||||
@@ -26,7 +27,8 @@ public:
|
||||
|
||||
public:
|
||||
Light(LightType type = POINT_LIGHT, Tuple position=Point(0, 0, 0),
|
||||
Colour intensity=Colour(1, 1, 1)) : type(type), position(position), intensity(intensity) { };
|
||||
Colour intensity=Colour(1, 1, 1)) : type(type), position(position), intensity(intensity)
|
||||
{ stats.addLight(); };
|
||||
|
||||
bool operator==(const Light &b) const { return this->intensity == b.intensity &&
|
||||
this->position == b.position &&
|
||||
|
||||
Reference in New Issue
Block a user