-----------------------------------------------------------------------------------
| 861 | } |
| 862 | //----------------------------------------------------------------------------------- |
| 863 | void GraphicsSystem::createCamera() |
| 864 | { |
| 865 | mCamera = mSceneManager->createCamera( "Main Camera" ); |
| 866 | |
| 867 | // Position it at 500 in Z direction |
| 868 | mCamera->setPosition( Ogre::Vector3( 0, 5, 15 ) ); |
| 869 | // Look back along -Z |
| 870 | mCamera->lookAt( Ogre::Vector3( 0, 0, 0 ) ); |
| 871 | mCamera->setNearClipDistance( 0.2f ); |
| 872 | mCamera->setFarClipDistance( 1000.0f ); |
| 873 | mCamera->setAutoAspectRatio( true ); |
| 874 | } |
| 875 | //----------------------------------------------------------------------------------- |
| 876 | Ogre::CompositorWorkspace *GraphicsSystem::setupCompositor() |
| 877 | { |
no test coverage detected