From 80632eeb47d73c34410f5e54519a706aed872338 Mon Sep 17 00:00:00 2001 From: Benjamin Kloster Date: Fri, 17 May 2013 21:44:39 +0200 Subject: [PATCH] Remove leftover code for static camera We don't need that anymore. --- src/ogre/ogre_engine.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/ogre/ogre_engine.cpp b/src/ogre/ogre_engine.cpp index 616d19100a4..5395a96762d 100644 --- a/src/ogre/ogre_engine.cpp +++ b/src/ogre/ogre_engine.cpp @@ -74,21 +74,6 @@ struct OgreEngine::Implementation : public Ogre::WindowEventListener { } } - void - setupCamera() { - m_camera = m_sceneManager->createCamera("PlayerCam"); - m_camera->setNearClipDistance(5); - m_camera->setFarClipDistance(10000); - m_camera->setAutoAspectRatio(true); - // Create node - m_cameraNode = m_sceneManager->getRootSceneNode()->createChildSceneNode( - "MainCameraNode", - Ogre::Vector3(0,0,30), - Ogre::Quaternion::IDENTITY - ); - m_cameraNode->attachObject(m_camera); - } - void setupInputManager() { const std::string HANDLE_NAME = "WINDOW"; @@ -145,10 +130,6 @@ struct OgreEngine::Implementation : public Ogre::WindowEventListener { std::unique_ptr m_root; - Ogre::Camera* m_camera = nullptr; - - Ogre::SceneNode* m_cameraNode = nullptr; - OIS::InputManager* m_inputManager = nullptr; std::shared_ptr m_keyboardSystem = nullptr; @@ -192,7 +173,6 @@ OgreEngine::init( Ogre::ResourceGroupManager::getSingleton().initialiseAllResourceGroups(); // Setup m_impl->setupSceneManager(); - m_impl->setupCamera(); m_impl->setupViewport(); m_impl->setupLighting(); m_impl->setupInputManager();