Add virtual destructor for Shape class
This commit is contained in:
parent
55ef253c10
commit
e55828890b
2 changed files with 10 additions and 0 deletions
|
@ -76,6 +76,15 @@ Shape::Shape(Vector3 o)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Shape::~Shape() --
|
||||||
|
*
|
||||||
|
* Destructor.
|
||||||
|
*/
|
||||||
|
Shape::~Shape()
|
||||||
|
{ }
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Shape::get_material --
|
* Shape::get_material --
|
||||||
* Shape::set_material --
|
* Shape::set_material --
|
||||||
|
|
|
@ -34,6 +34,7 @@ class Shape
|
||||||
public:
|
public:
|
||||||
Shape();
|
Shape();
|
||||||
Shape(Vector3 o);
|
Shape(Vector3 o);
|
||||||
|
virtual ~Shape();
|
||||||
|
|
||||||
Material &get_material() const;
|
Material &get_material() const;
|
||||||
void set_material(Material *mat);
|
void set_material(Material *mat);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue