]> git.tdb.fi Git - gldbg.git/blobdiff - source/gldbg.h
Add classes to track OpenGL state and commands to inspect it
[gldbg.git] / source / gldbg.h
index 5f75164539153b06554bd41fcae0528b6f639b88..ff844518ed68f715e0e3a5036be9b7d4ab95716c 100644 (file)
@@ -13,6 +13,7 @@ Distributed under the GPL
 #include <msp/core/application.h>
 #include <msp/fs/path.h>
 #include "commandinterpreter.h"
+#include "glstate.h"
 #include "process.h"
 #include "tracer.h"
 
@@ -26,6 +27,7 @@ private:
        unsigned buf_offset;
        bool flushing;
        Tracer tracer;
+       GlState glstate;
        bool got_sigchld;
 
        static RegApp<GlDbg> reg;
@@ -34,6 +36,7 @@ public:
        GlDbg(int, char **);
        int main();
        Tracer &get_tracer() { return tracer; }
+       GlState &get_glstate() { return glstate; }
        Process &get_process() { return process; }
        void launch();
        void quit();