changes for ImGui
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
#include <sophia/handles.hpp>
|
||||
#include <sophia/ui/panel_registry.hpp>
|
||||
|
||||
namespace sophia {
|
||||
|
||||
class DebugUI {
|
||||
public:
|
||||
DebugUI(const DebugUI&) = delete;
|
||||
DebugUI& operator=(const DebugUI&) = delete;
|
||||
|
||||
explicit DebugUI(PanelRegistry& registry);
|
||||
~DebugUI() = default;
|
||||
|
||||
void show();
|
||||
void hide();
|
||||
|
||||
void showPanelRegistry(bool show = true);
|
||||
void showFrameStats(bool show = true);
|
||||
|
||||
private:
|
||||
PanelRegistry& registry;
|
||||
|
||||
PanelHandle panelRegistryHandle;
|
||||
PanelHandle frameStatsHandle;
|
||||
};
|
||||
|
||||
} // namespace sophia
|
||||
Reference in New Issue
Block a user