Use shared_ptr for Scene::mCamera
Makes memory management a bit easier...
This commit is contained in:
parent
c564791d1a
commit
c65c6a3cfd
3 changed files with 16 additions and 8 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue