]> git.tdb.fi Git - gldbg.git/blobdiff - source/inspector.h
Decouple the existing tools from the debugger core
[gldbg.git] / source / inspector.h
diff --git a/source/inspector.h b/source/inspector.h
new file mode 100644 (file)
index 0000000..91e2a46
--- /dev/null
@@ -0,0 +1,29 @@
+/* $Id$
+
+This file is part of gldbg
+Copyright © 2010  Mikko Rasa, Mikkosoft Productions
+Distributed under the GPL
+*/
+
+#ifndef INSPECTOR_H_
+#define INSPECTOR_H_
+
+#include "glstate.h"
+#include "tool.h"
+
+class Inspector: public RegisteredTool<Inspector>
+{
+private:
+       GlState state;
+
+public:
+       Inspector(GlDbg &);
+
+       virtual void decode(const char *, unsigned);
+private:
+       void cmd_state(const std::string &);
+       void cmd_texture(const std::string &);
+       void cmd_buffer(const std::string &);
+};
+
+#endif