Skip to content

Commit

Permalink
Remove leftover code for static camera
Browse files Browse the repository at this point in the history
We don't need that anymore.
  • Loading branch information
bkloster committed May 17, 2013
1 parent d54c4c8 commit 80632ee
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/ogre/ogre_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -145,10 +130,6 @@ struct OgreEngine::Implementation : public Ogre::WindowEventListener {

std::unique_ptr<Ogre::Root> m_root;

Ogre::Camera* m_camera = nullptr;

Ogre::SceneNode* m_cameraNode = nullptr;

OIS::InputManager* m_inputManager = nullptr;

std::shared_ptr<KeyboardSystem> m_keyboardSystem = nullptr;
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 80632ee

Please sign in to comment.