Showing the changes to libraries/script-engine/src/SceneScriptingInterface.cpp (1 of 8 files). Show all
Unified · Split
| @@ -0,0 +1,36 @@ | ||
| 1 | +// | |
| 2 | +// SceneScriptingInterface.cpp | |
| 3 | +// interface/src/scripting | |
| 4 | +// | |
| 5 | +// Created by Sam Gateau on 2/24/15. | |
| 6 | +// Copyright 2014 High Fidelity, Inc. | |
| 7 | +// | |
| 8 | +// Distributed under the Apache License, Version 2.0. | |
| 9 | +// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html | |
| 10 | +// | |
| 11 | + | |
| 12 | +#include <AddressManager.h> | |
| 13 | + | |
| 14 | +#include "SceneScriptingInterface.h" | |
| 15 | + | |
| 16 | + Q_INVOKABLE void setOriginGeoLocation(float longitude, float latitude, float altitude); | |
| 17 | +void SceneScriptingInterface::setOriginLocation(float longitude, float latitude, float altitude) { | |
| 18 | + _skyStage->setOriginLocation(longitude, latitude, altitude); | |
| 19 | +} | |
| 20 | +void SceneScriptingInterface::setSunColor(const glm::vec3& color) { | |
| 21 | + _skyStage->setSunColor(color); | |
| 22 | +} | |
| 23 | +void SceneScriptingInterface::setSunIntensity(float intensity) { | |
| 24 | + _skyStage->setSunIntensity(intensity); | |
| 25 | +} | |
| 26 | + | |
| 27 | +void SceneScriptingInterface::setDayTime(float hour) { | |
| 28 | + _skyStage->setDayTime(hour); | |
| 29 | +} | |
| 30 | +void SceneScriptingInterface::setYearTime(int day) { | |
| 31 | + _skyStage->setYearTime(day); | |
| 32 | +} | |
| 33 | + | |
| 34 | +model::SunSkyStagePointer SceneScriptingInterface::getSkyStage() const { | |
| 35 | + return _skyStage; | |
| 36 | +} | |