added Shape::~Shape() to work around compiler warnings

git-svn-id: svn://anubis/fart/trunk@101 7f9b0f55-74a9-4bce-be96-3c2cd072584d
This commit is contained in:
Josh Holtrop 2009-02-11 17:11:30 +00:00
parent ee64558db6
commit 7f9b8b913a
2 changed files with 13 additions and 8 deletions

View File

@ -1,8 +1,12 @@
#include "Shape.h" #include "Shape.h"
Shape::Shape() Shape::Shape()
{ {
m_transparency = 0.0; m_transparency = 0.0;
m_material = new Material(Material::white); m_material = new Material(Material::white);
} }
Shape::~Shape()
{
}

View File

@ -16,6 +16,7 @@ class Shape
typedef std::vector<Vector> IntersectList; typedef std::vector<Vector> IntersectList;
Shape(); Shape();
virtual ~Shape();
virtual IntersectList intersect(const Ray & ray) = 0; virtual IntersectList intersect(const Ray & ray) = 0;
virtual Vector getNormalAt(const Vector & pt) = 0; virtual Vector getNormalAt(const Vector & pt) = 0;