Use shared_ptr for Scene::mCamera

Makes memory management a bit easier...
This commit is contained in:
Eryn Wells 2014-07-20 12:37:31 -07:00
parent c564791d1a
commit c65c6a3cfd
3 changed files with 16 additions and 8 deletions

View file

@ -10,11 +10,15 @@
#ifndef __CAMERA_H__
#define __CAMERA_H__
#include <memory>
#include "basics.h"
struct Camera
{
typedef std::shared_ptr<Camera> Ptr;
Camera();
Camera(const Camera& other);
virtual ~Camera();