libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
StatsWindow.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace Ship {
13class StatsWindow : public GuiWindow {
14 public:
16
18 virtual ~StatsWindow();
19
20 protected:
22 void OnInit(const nlohmann::json& initArgs = nlohmann::json::object()) override;
23
25 void DrawElement() override;
26
28 void UpdateElement() override;
29};
30} // namespace Ship
A floating ImGui window managed by the Ship Gui layer.
Definition GuiWindow.h:39
GuiWindow(std::shared_ptr< ConsoleVariable > consoleVariable, std::shared_ptr< Window > window, const std::string &visibilityCvar, bool isVisible, const std::string &name, ImVec2 originalSize, uint32_t windowFlags)
Full constructor with constructor-injected dependencies, explicit size and window flags.
An ImGui window that displays runtime performance statistics.
Definition StatsWindow.h:13
void DrawElement() override
Renders the stats panel contents via ImGui.
void UpdateElement() override
Updates cached counters and timing values before each draw.
void OnInit(const nlohmann::json &initArgs=nlohmann::json::object()) override
Performs one-time setup (no additional initialisation required).
virtual ~StatsWindow()
Virtual destructor.
Core namespace for the libultraship engine framework.
Definition gfx_direct3d_common.h:14