]> git.tdb.fi Git - gldbg.git/blobdiff - source/gldbg.h
Add framework necessary to support more modular tools
[gldbg.git] / source / gldbg.h
index e42e4aa1d1425cb5c105bca4528d6835ad81ad77..543df05a580265b5d88e395f995ffb2b2a0f0438 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of gldbg
-Copyright © 2009  Mikko Rasa, Mikkosoft Productions
+Copyright © 2009-2010  Mikko Rasa, Mikkosoft Productions
 Distributed under the GPL
 */
 
@@ -18,6 +18,8 @@ Distributed under the GPL
 #include "profiler.h"
 #include "tracer.h"
 
+class Tool;
+
 class GlDbg: public Msp::Application
 {
 private:
@@ -27,6 +29,7 @@ private:
        std::string buffer;
        unsigned buf_offset;
        bool flushing;
+       std::list<Tool *> tools;
        Tracer tracer;
        GlState glstate;
        Profiler profiler;
@@ -37,6 +40,7 @@ private:
 public:
        GlDbg(int, char **);
        int main();
+       CommandInterpreter &get_command_interpreter() { return cmd_interp; }
        Tracer &get_tracer() { return tracer; }
        GlState &get_glstate() { return glstate; }
        Profiler &get_profiler() { return profiler; }