summaryrefslogtreecommitdiff
path: root/include/egg/core/eggPerformanceView.h
diff options
context:
space:
mode:
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