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);}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t