33 lines
680 B
C++
33 lines
680 B
C++
#pragma once
|
|
|
|
#include <sophia/console/console_command_registry.hpp>
|
|
#include <sophia/handles.hpp>
|
|
#include <sophia/ui/panel_registry.hpp>
|
|
|
|
namespace sophia {
|
|
|
|
class DebugUI {
|
|
public:
|
|
DebugUI(const DebugUI&) = delete;
|
|
DebugUI& operator=(const DebugUI&) = delete;
|
|
|
|
DebugUI(PanelRegistry& registry, ConsoleCommandRegistry& commands);
|
|
~DebugUI() = default;
|
|
|
|
void show();
|
|
void hide();
|
|
|
|
void showPanelRegistry(bool show = true);
|
|
void showFrameStats(bool show = true);
|
|
void showConsole(bool show = true);
|
|
|
|
private:
|
|
PanelRegistry& registry;
|
|
|
|
PanelHandle panelRegistryHandle;
|
|
PanelHandle frameStatsHandle;
|
|
PanelHandle consoleHandle;
|
|
};
|
|
|
|
} // namespace sophia
|