Jamie Slowgrove - OOT Assignment 1 - A Mission in Afghanistan
 All Classes Namespaces Files Functions Variables Macros
Public Member Functions | Private Attributes | List of all members
Camera Class Reference

A class for a Camera object. More...

#include <Camera.h>

Collaboration diagram for Camera:
Collaboration graph

Public Member Functions

 Camera (std::shared_ptr< Ogre::SceneNode > sceneNode, std::shared_ptr< Ogre::MovableObject > camera, Ogre::Vector3 rotationOffset, Ogre::Vector3 positonOffset)
 
 ~Camera ()
 
void update (float dt)
 

Private Attributes

std::shared_ptr< Ogre::SceneNode > sceneNode
 
std::shared_ptr
< Ogre::MovableObject > 
camera
 
Ogre::Vector3 rotationOffset
 
Ogre::Vector3 positonOffset
 

Detailed Description

A class for a Camera object.

Author
Jamie Slowgrove

Constructor & Destructor Documentation

Camera::Camera ( std::shared_ptr< Ogre::SceneNode >  sceneNode,
std::shared_ptr< Ogre::MovableObject >  camera,
Ogre::Vector3  rotationOffset,
Ogre::Vector3  positonOffset 
)

Constructs the Camera object.

Parameters
std::shared_ptr<Ogre::SceneNode>A pointer to the camera scene node.
std::shared_ptr<Ogre::MovableObject>A pointer to the camera moveable object.
Ogre::Vector3The rotation offset of the Camera.
Ogre::Vector3The positon offset of the Camera.
Camera::~Camera ( )

Destructs the Camera object.

Member Function Documentation

void Camera::update ( float  dt)

Updates the Camera.

Parameters
floatThe delta time.

Member Data Documentation

std::shared_ptr<Ogre::MovableObject> Camera::camera
private

A pointer to the camera movable object.

Ogre::Vector3 Camera::positonOffset
private

The Camera objects position offset.

Ogre::Vector3 Camera::rotationOffset
private

The Camera objects rotation offset.

std::shared_ptr<Ogre::SceneNode> Camera::sceneNode
private

A pointer to the camera scene node.


The documentation for this class was generated from the following files: