Clean up constructors for Object and Sphere

Use default arguments instead of multiple constructors. I forgot about those! Use Vector4s all around.
This commit is contained in:
Eryn Wells 2014-08-09 08:57:41 -07:00
parent 8ccfbc0498
commit ab9ac5e963
4 changed files with 28 additions and 49 deletions

View file

@ -18,6 +18,8 @@
#include "stats.hh"
#include "texture.h"
#include "types.hh"
#include "basics/basics.hh"
namespace charles {
@ -25,8 +27,7 @@ struct Object
{
typedef std::shared_ptr<Object> Ptr;
Object();
Object(Vector3 o);
Object(const basics::Vector4& origin = basics::Vector4());
virtual ~Object();
Vector3 GetOrigin() const;