28 lines · 672 B · C++
RawDownload
////  FancyCamera.cpp//  interface/src////  Copyright 2017 High Fidelity, Inc.////  Distributed under the Apache License, Version 2.0.//  See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html// #include "FancyCamera.h" #include "Application.h" PickRay FancyCamera::computePickRay(float x, float y) const {    return qApp->computePickRay(x, y);} QUuid FancyCamera::getCameraEntity() const {    if (_cameraEntity != nullptr) {        return _cameraEntity->getID();    }    return QUuid();}; void FancyCamera::setCameraEntity(QUuid entityID) {    _cameraEntity = qApp->getEntities()->getTree()->findEntityByID(entityID);}