]> git.tdb.fi Git - gldbg.git/blobdiff - source/gldbg.h
Consolidate genwrap.py and genenum.py into generate.py
[gldbg.git] / source / gldbg.h
index 5f75164539153b06554bd41fcae0528b6f639b88..e42e4aa1d1425cb5c105bca4528d6835ad81ad77 100644 (file)
@@ -13,7 +13,9 @@ Distributed under the GPL
 #include <msp/core/application.h>
 #include <msp/fs/path.h>
 #include "commandinterpreter.h"
+#include "glstate.h"
 #include "process.h"
+#include "profiler.h"
 #include "tracer.h"
 
 class GlDbg: public Msp::Application
@@ -26,6 +28,8 @@ private:
        unsigned buf_offset;
        bool flushing;
        Tracer tracer;
+       GlState glstate;
+       Profiler profiler;
        bool got_sigchld;
 
        static RegApp<GlDbg> reg;
@@ -34,9 +38,11 @@ public:
        GlDbg(int, char **);
        int main();
        Tracer &get_tracer() { return tracer; }
+       GlState &get_glstate() { return glstate; }
+       Profiler &get_profiler() { return profiler; }
        Process &get_process() { return process; }
        void launch();
-       void quit();
+       void quit(bool);
 private:
        void tick();
        void check_child();