mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 11:39:49 -06:00
Feature/globals (#690)
* Move global objects out of OpenSpaceEngine * General cleanup of main.cpp * Add default_joystick asset to all scenes * No longer suppress mouse interaction on slave nodes * Window delegate uses function pointers rather than subclassing * Fix for false overwriting of ImGUI configuration file * Change default color and tilt angle of fisheye rendering * Restructured performance manager * Simplify screenshot handling
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
#include <modules/sync/syncs/urlsynchronization.h>
|
||||
#include <modules/sync/tasks/syncassettask.h>
|
||||
#include <openspace/documentation/documentation.h>
|
||||
#include <openspace/engine/openspaceengine.h>
|
||||
#include <openspace/engine/globalscallbacks.h>
|
||||
#include <openspace/rendering/renderable.h>
|
||||
#include <openspace/rendering/screenspacerenderable.h>
|
||||
#include <openspace/util/factorymanager.h>
|
||||
@@ -114,11 +114,7 @@ void SyncModule::internalInitialize(const ghoul::Dictionary& configuration) {
|
||||
|
||||
_torrentClient.initialize();
|
||||
|
||||
// Deinitialize
|
||||
OsEng.registerModuleCallback(
|
||||
OpenSpaceEngine::CallbackOption::Deinitialize,
|
||||
[&]() { _torrentClient.deinitialize(); }
|
||||
);
|
||||
global::callback::deinitialize.push_back([&]() { _torrentClient.deinitialize(); });
|
||||
}
|
||||
|
||||
void SyncModule::internalDeinitialize() {
|
||||
|
||||
@@ -27,7 +27,6 @@
|
||||
#include <modules/sync/syncmodule.h>
|
||||
#include <openspace/documentation/documentation.h>
|
||||
#include <openspace/documentation/verifier.h>
|
||||
#include <openspace/engine/openspaceengine.h>
|
||||
#include <openspace/engine/moduleengine.h>
|
||||
#include <openspace/util/httprequest.h>
|
||||
#include <ghoul/fmt.h>
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#include <openspace/documentation/core_registration.h>
|
||||
#include <openspace/documentation/verifier.h>
|
||||
#include <openspace/engine/moduleengine.h>
|
||||
#include <openspace/engine/openspaceengine.h>
|
||||
#include <openspace/engine/globals.h>
|
||||
#include <openspace/scene/assetlistener.h>
|
||||
#include <openspace/scene/assetloader.h>
|
||||
#include <openspace/scripting/scriptengine.h>
|
||||
@@ -104,7 +104,7 @@ void SyncAssetTask::perform(const Task::ProgressCallback& progressCallback) {
|
||||
|
||||
registerCoreClasses(scriptEngine);
|
||||
|
||||
for (OpenSpaceModule* m : OsEng.moduleEngine().modules()) {
|
||||
for (OpenSpaceModule* m : global::moduleEngine.modules()) {
|
||||
scriptEngine.addLibrary(m->luaLibrary());
|
||||
|
||||
for (scripting::LuaLibrary& l : m->luaLibraries()) {
|
||||
|
||||
Reference in New Issue
Block a user