MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / createCamera

Method createCamera

Samples/2.0/Common/src/GraphicsSystem.cpp:863–874  ·  view source on GitHub ↗

-----------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

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 {

Callers 6

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
setupCompositorMethod · 0.45
initOpenVRMethod · 0.45
createNormalTextureMethod · 0.45

Calls 6

setNearClipDistanceMethod · 0.80
setFarClipDistanceMethod · 0.80
setAutoAspectRatioMethod · 0.80
Vector3Function · 0.50
setPositionMethod · 0.45
lookAtMethod · 0.45

Tested by

no test coverage detected