Showing the changes to interface/src/RefreshRateManager.cpp (1 of 34 files). Show all
Unified · Split
| @@ -4,6 +4,7 @@ · 3 unmodified lines | |||
| 4 | // | 4 | // |
| 5 | // Created by Dante Ruiz on 2019-04-15. | 5 | // Created by Dante Ruiz on 2019-04-15. |
| 6 | // Copyright 2019 High Fidelity, Inc. | 6 | // Copyright 2019 High Fidelity, Inc. |
| 7 | // Copyright 2022 Overte e.V. | ||
| 7 | // | 8 | // |
| 8 | // Distributed under the Apache License, Version 2.0. | 9 | // 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 | // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html |
| @@ -13,7 +14,15 @@ · 3 unmodified lines | |||
| 13 | #include "RefreshRateManager.h" | 14 | #include "RefreshRateManager.h" |
| 14 | 15 | ||
| 15 | #include <array> | 16 | #include <array> |
| 17 | #include <ScriptEngineCast.h> | ||
| 18 | #include <ScriptManager.h> | ||
| 16 | 19 | ||
| 20 | STATIC_SCRIPT_TYPES_INITIALIZER(+[](ScriptManager* manager){ | ||
| 21 | auto scriptEngine = manager->engine().get(); | ||
| 22 | |||
| 23 | scriptRegisterMetaType(scriptEngine, scriptValueFromEnumClass<RefreshRateManager::RefreshRateRegime>, scriptValueToEnumClass<RefreshRateManager::RefreshRateRegime>, "RefreshRateRegime"); | ||
| 24 | scriptRegisterMetaType(scriptEngine, scriptValueFromEnumClass<RefreshRateManager::UXMode>, scriptValueToEnumClass<RefreshRateManager::UXMode>, "UXMode"); | ||
| 25 | }); | ||
| 17 | 26 | ||
| 18 | static const int VR_TARGET_RATE = 90; | 27 | static const int VR_TARGET_RATE = 90; |
| 19 | 28 | ||