]> git.tdb.fi Git - gldbg.git/blob - source/tracer.h
Make gldbg interactive
[gldbg.git] / source / tracer.h
1 /* $Id$
2
3 This file is part of gldbg
4 Copyright © 2009  Mikko Rasa, Mikkosoft Productions
5 Distributed under the GPL
6 */
7
8 #ifndef TRACER_H_
9 #define TRACER_H_
10
11 #include <msp/io/base.h>
12
13 struct GlPrint;
14
15 class Tracer
16 {
17 private:
18         GlPrint *glprint;
19         Msp::IO::Base *out;
20         bool delete_out;
21         bool enabled;
22
23 public:
24         Tracer();
25         ~Tracer();
26
27         void set_output(Msp::IO::Base *);
28         void set_output(Msp::IO::Base &);
29         void enable();
30         void disable();
31         int decode(const char *, unsigned);
32 };
33
34 #endif