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:
parent
8ccfbc0498
commit
ab9ac5e963
4 changed files with 28 additions and 49 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue