]> git.tdb.fi Git - gldbg.git/blobdiff - source/tracer.h
Make gldbg interactive
[gldbg.git] / source / tracer.h
diff --git a/source/tracer.h b/source/tracer.h
new file mode 100644 (file)
index 0000000..51adb39
--- /dev/null
@@ -0,0 +1,34 @@
+/* $Id$
+
+This file is part of gldbg
+Copyright © 2009  Mikko Rasa, Mikkosoft Productions
+Distributed under the GPL
+*/
+
+#ifndef TRACER_H_
+#define TRACER_H_
+
+#include <msp/io/base.h>
+
+struct GlPrint;
+
+class Tracer
+{
+private:
+       GlPrint *glprint;
+       Msp::IO::Base *out;
+       bool delete_out;
+       bool enabled;
+
+public:
+       Tracer();
+       ~Tracer();
+
+       void set_output(Msp::IO::Base *);
+       void set_output(Msp::IO::Base &);
+       void enable();
+       void disable();
+       int decode(const char *, unsigned);
+};
+
+#endif