Jamie Slowgrove - OOT Assignment 1 - A Mission in Afghanistan
 All Classes Namespaces Files Functions Variables Macros
Camera.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "stdafx.h"
4 #include <memory>
5 #include "myUtils.h"
6 
11 class Camera
12 {
13 private:
15  std::shared_ptr<Ogre::SceneNode> sceneNode;
17  std::shared_ptr<Ogre::MovableObject> camera;
19  Ogre::Vector3 rotationOffset;
21  Ogre::Vector3 positonOffset;
22 
23 public:
31  Camera(std::shared_ptr<Ogre::SceneNode> sceneNode, std::shared_ptr<Ogre::MovableObject> camera,
32  Ogre::Vector3 rotationOffset, Ogre::Vector3 positonOffset);
33 
37  ~Camera();
38 
43  void update(float dt);
44 };
std::shared_ptr< Ogre::SceneNode > sceneNode
Definition: Camera.h:15
Camera(std::shared_ptr< Ogre::SceneNode > sceneNode, std::shared_ptr< Ogre::MovableObject > camera, Ogre::Vector3 rotationOffset, Ogre::Vector3 positonOffset)
Definition: Camera.cpp:7
Ogre::Vector3 rotationOffset
Definition: Camera.h:19
A class for a Camera object.
Definition: Camera.h:11
Ogre::Vector3 positonOffset
Definition: Camera.h:21
std::shared_ptr< Ogre::MovableObject > camera
Definition: Camera.h:17
void update(float dt)
Definition: Camera.cpp:27
~Camera()
Definition: Camera.cpp:20