mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-13 07:21:08 -06:00
Modularize the newhorizons and volume classes
This commit is contained in:
@@ -28,6 +28,10 @@
|
||||
|
||||
#include <ghoul/logging/logmanager.h>
|
||||
|
||||
#include <modules/base/basemodule.h>
|
||||
#include <modules/newhorizons/newhorizonsmodule.h>
|
||||
#include <modules/volume/volumemodule.h>
|
||||
|
||||
namespace {
|
||||
const std::string _loggerCat = "ModuleEngine";
|
||||
}
|
||||
@@ -36,6 +40,11 @@ namespace openspace {
|
||||
|
||||
bool ModuleEngine::initialize() {
|
||||
LDEBUG("Initializing modules");
|
||||
|
||||
registerModule(new BaseModule);
|
||||
registerModule(new NewHorizonsModule);
|
||||
registerModule(new VolumeModule);
|
||||
|
||||
for (OpenSpaceModule* m : _modules) {
|
||||
bool success = m->initialize();
|
||||
if (!success) {
|
||||
|
||||
Reference in New Issue
Block a user