32 #include <OgreCamera.h> 33 #include <OgreSceneManager.h> 34 #include <OgreSceneNode.h> 35 #include <OgreVector3.h> 36 #include <OgreQuaternion.h> 44 : scene_manager_(scene_manager), relative_node_(nullptr)
47 static uint32_t count = 0;
48 ss <<
"CameraBase" << count++;
73 setOrientation(orientation.x, orientation.y, orientation.z, orientation.w);
void setRelativeNode(Ogre::SceneNode *node)
Set a scene node that all camera transformations should be relative to.
CameraBase(Ogre::SceneManager *scene_manager)
Constructor.
Ogre::Camera * camera_
Ogre camera associated with this camera object.
Ogre::SceneNode * relative_node_
virtual void setOrientation(const Ogre::Quaternion &orientation)
Set the orientation of the camera.
virtual void relativeNodeChanged()
Called when the relative node changes.
Ogre::SceneManager * scene_manager_
Scene manager this camera is part of.
virtual void setPosition(const Ogre::Vector3 &position)
Set the position of the camera.