mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-16 00:41:18 -06:00
Merge branch 'master' into feature/loadingscreen-refactor
This commit is contained in:
@@ -910,7 +910,7 @@ void OpenSpaceEngine::configureLogging() {
|
||||
ConfigurationManager::KeyLogging + '.' + ConfigurationManager::PartLogLevel;
|
||||
const std::string KeyLogImmediateFlush =
|
||||
ConfigurationManager::KeyLogging + '.' + ConfigurationManager::PartImmediateFlush;
|
||||
const std::string KeyLogs =
|
||||
const std::string KeyLogs =
|
||||
ConfigurationManager::KeyLogging + '.' + ConfigurationManager::PartLogs;
|
||||
|
||||
if (configurationManager().hasKeyAndValue<std::string>(KeyLogLevel)) {
|
||||
@@ -1087,7 +1087,7 @@ void OpenSpaceEngine::initializeGL() {
|
||||
|
||||
// The ordering of the KeyCheckOpenGLState and KeyLogEachOpenGLCall are important as
|
||||
// the callback mask in glbinding is stateful for each context, and since
|
||||
// KeyLogEachOpenGLCall is more specific, we want it to be able to overwrite the
|
||||
// KeyLogEachOpenGLCall is more specific, we want it to be able to overwrite the
|
||||
// state from KeyCheckOpenGLState
|
||||
if (_configurationManager->hasKey(ConfigurationManager::KeyCheckOpenGLState)) {
|
||||
const bool val = _configurationManager->value<bool>(
|
||||
@@ -1292,18 +1292,11 @@ void OpenSpaceEngine::render(const glm::mat4& sceneMatrix,
|
||||
func();
|
||||
}
|
||||
|
||||
if (isGuiWindow && _shutdown.inShutdown) {
|
||||
_renderEngine->renderShutdownInformation(_shutdown.timer, _shutdown.waitTime);
|
||||
}
|
||||
|
||||
LTRACE("OpenSpaceEngine::render(end)");
|
||||
}
|
||||
|
||||
void OpenSpaceEngine::postDraw() {
|
||||
LTRACE("OpenSpaceEngine::postDraw(begin)");
|
||||
|
||||
_renderEngine->postDraw();
|
||||
|
||||
void OpenSpaceEngine::drawOverlays() {
|
||||
LTRACE("OpenSpaceEngine::drawOverlays(begin)");
|
||||
const bool isGuiWindow =
|
||||
_windowWrapper->hasGuiWindow() ? _windowWrapper->isGuiWindow() : true;
|
||||
|
||||
@@ -1319,6 +1312,18 @@ void OpenSpaceEngine::postDraw() {
|
||||
_console->render();
|
||||
}
|
||||
|
||||
for (const auto& func : _moduleCallbacks.draw2D) {
|
||||
func();
|
||||
}
|
||||
|
||||
LTRACE("OpenSpaceEngine::drawOverlays(end)");
|
||||
}
|
||||
|
||||
void OpenSpaceEngine::postDraw() {
|
||||
LTRACE("OpenSpaceEngine::postDraw(begin)");
|
||||
|
||||
_renderEngine->postDraw();
|
||||
|
||||
for (const auto& func : _moduleCallbacks.postDraw) {
|
||||
func();
|
||||
}
|
||||
@@ -1328,6 +1333,7 @@ void OpenSpaceEngine::postDraw() {
|
||||
_isFirstRenderingFirstFrame = false;
|
||||
}
|
||||
|
||||
|
||||
LTRACE("OpenSpaceEngine::postDraw(end)");
|
||||
}
|
||||
|
||||
@@ -1508,6 +1514,9 @@ void OpenSpaceEngine::registerModuleCallback(OpenSpaceEngine::CallbackOption opt
|
||||
case CallbackOption::Render:
|
||||
_moduleCallbacks.render.push_back(std::move(function));
|
||||
break;
|
||||
case CallbackOption::Draw2D:
|
||||
_moduleCallbacks.draw2D.push_back(std::move(function));
|
||||
break;
|
||||
case CallbackOption::PostDraw:
|
||||
_moduleCallbacks.postDraw.push_back(std::move(function));
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user