diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-23 17:31:31 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-23 17:31:31 +0200 |
| commit | cce1f768e7399b838a2b865511915bdd576dbbf4 (patch) | |
| tree | 4c6a8f2dc9112394fd329d56c0f628ce66b16467 /main/debug.cpp | |
| parent | 6b875a0919b9932eca9ed877552c34ecb220b7d8 (diff) | |
a
Diffstat (limited to 'main/debug.cpp')
| -rw-r--r-- | main/debug.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/debug.cpp b/main/debug.cpp index 3383948b..4ce4a3b0 100644 --- a/main/debug.cpp +++ b/main/debug.cpp @@ -1,4 +1,4 @@ -#include "app.hpp" +#include "main.hpp" #include <chrono> #include <Magnum/GL/Renderer.h> @@ -12,7 +12,7 @@ using GL::Renderer; using GL::DebugOutput; // NOLINTNEXTLINE(readability-convert-member-functions-to-static) -void app::debug_callback(GL::DebugOutput::Source src, GL::DebugOutput::Type type, UnsignedInt id, +void floormat::debug_callback(GL::DebugOutput::Source src, GL::DebugOutput::Type type, UnsignedInt id, Severity severity, const std::string& str) const { static thread_local auto clock = std::chrono::steady_clock{}; @@ -58,13 +58,13 @@ void app::debug_callback(GL::DebugOutput::Source src, GL::DebugOutput::Type type std::fputs("", stdout); // put breakpoint here } -void app::_debug_callback(GL::DebugOutput::Source src, GL::DebugOutput::Type type, UnsignedInt id, +void floormat::_debug_callback(GL::DebugOutput::Source src, GL::DebugOutput::Type type, UnsignedInt id, GL::DebugOutput::Severity severity, const std::string& str, const void* self) { - static_cast<const app*>(self)->debug_callback(src, type, id, severity, str); + static_cast<const floormat*>(self)->debug_callback(src, type, id, severity, str); } -void* app::register_debug_callback() +void* floormat::register_debug_callback() { GL::DebugOutput::setCallback(_debug_callback, this); |
