]> git.tdb.fi Git - gldbg.git/blob - source/gldbg.h
Add gldbg program
[gldbg.git] / source / gldbg.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 GLDBG_H_
9 #define GLDBG_H_
10
11 #include <string>
12 #include <vector>
13 #include <msp/core/application.h>
14 #include <msp/fs/path.h>
15 #include "glstate.h"
16
17 class GlDbg: public Msp::Application
18 {
19 private:
20         Msp::FS::Path libdir;
21         int pid;
22         std::vector<std::string> args;
23         int sock_fd;
24         std::string buffer;
25         unsigned buf_offset;
26         GlDecoder *glprint;
27
28         static RegApp<GlDbg> reg;
29
30 public:
31         GlDbg(int, char **);
32         int main();
33 private:
34         void tick();
35         void launch();
36 };
37
38 #endif