summaryrefslogtreecommitdiff
path: root/include/egg/core/eggPerformanceView.h
diff options
context:
space:
mode:
authorSean Miller <seanmiller999@gmail.com>2026-04-09 23:32:06 +0100
committerSean Miller <seanmiller999@gmail.com>2026-04-09 23:32:06 +0100
commit2b3486b05fa356a71b3292806bcff2ddc7713aeb (patch)
tree5908233b09a221d76563ab3b0994774d023994f5 /include/egg/core/eggPerformanceView.h
parentc8b3ad05d245098ddae0f27ea5042fd47cec098e (diff)
100% eggSystem.cpp
Diffstat (limited to 'include/egg/core/eggPerformanceView.h')
-rw-r--r--include/egg/core/eggPerformanceView.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/egg/core/eggPerformanceView.h b/include/egg/core/eggPerformanceView.h
new file mode 100644
index 00000000..98cff48e
--- /dev/null
+++ b/include/egg/core/eggPerformanceView.h
@@ -0,0 +1,26 @@
+#ifndef EGG_PROCESS_METER_H
+#define EGG_PROCESS_METER_H
+
+#include "egg/core/eggThread.h"
+
+namespace EGG {
+
+class PerformanceView {
+public:
+ // vtable at 0x0
+ /* 0x08 */ virtual void measureBeginFrame() = 0;
+ /* 0x0C */ virtual void measureEndFrame() = 0;
+ /* 0x10 */ virtual void measureBeginRender() = 0;
+ /* 0x14 */ virtual void measureEndRender() = 0;
+ /* 0x18 */ virtual void callbackDrawSync(u16 token) = 0;
+ /* 0x1C */ virtual void unused() = 0;
+ /* 0x20 */ virtual void draw() = 0;
+ /* 0x24 */ virtual void setVisible(bool visible) = 0;
+ /* 0x28 */ virtual bool isVisible() = 0;
+};
+
+class ProcessMeter : public Thread, public PerformanceView {};
+
+}; // namespace EGG
+
+#endif // EGG_PROCESS_METER_H