diff --git a/shapes/Shape.cc b/shapes/Shape.cc index d6adadd..ce0a346 100755 --- a/shapes/Shape.cc +++ b/shapes/Shape.cc @@ -1,8 +1,12 @@ - -#include "Shape.h" - -Shape::Shape() -{ - m_transparency = 0.0; - m_material = new Material(Material::white); -} + +#include "Shape.h" + +Shape::Shape() +{ + m_transparency = 0.0; + m_material = new Material(Material::white); +} + +Shape::~Shape() +{ +} diff --git a/shapes/Shape.h b/shapes/Shape.h index d072c03..7d4cf67 100644 --- a/shapes/Shape.h +++ b/shapes/Shape.h @@ -16,6 +16,7 @@ class Shape typedef std::vector IntersectList; Shape(); + virtual ~Shape(); virtual IntersectList intersect(const Ray & ray) = 0; virtual Vector getNormalAt(const Vector & pt) = 0;