MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / cSetCameraFOVy

Function cSetCameraFOVy

source/modes/ConsoleCommands.cpp:421–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

419}
420
421Command::Result cSetCameraFOVy(const Command::ArgumentList_t& args, ConsoleInterface& c, AbstractModeManager&)
422{
423 Ogre::Camera* cam = ODFrameListener::getSingleton().getCameraManager()->getActiveCamera();
424 if(args.size() < 2)
425 {
426 c.print("Camera FOVy :" + Helper::toString(cam->getFOVy().valueDegrees()));
427 }
428 else
429 {
430 cam->setFOVy(Ogre::Degree(static_cast<Ogre::Real>(Helper::toFloat(args[1]))));
431 }
432 return Command::Result::SUCCESS;
433}
434
435Command::Result cListMeshAnims(const Command::ArgumentList_t& args, ConsoleInterface& c, AbstractModeManager&)
436{

Callers

nothing calls this directly

Calls 5

toFloatFunction · 0.85
getActiveCameraMethod · 0.80
getCameraManagerMethod · 0.80
toStringFunction · 0.50
printMethod · 0.45

Tested by

no test coverage detected