mirror of
https://github.com/overte-org/overte.git
synced 2025-04-26 01:16:35 +02:00
28 lines
672 B
C++
28 lines
672 B
C++
//
|
|
// 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);
|
|
}
|