]> git.tdb.fi Git - gldbg.git/blobdiff - flavors/gl/source/inspector.h
Fix several problems reported by valgrind
[gldbg.git] / flavors / gl / source / inspector.h
index 91e2a46e817911dc78518d8e508ed820e388c3b6..15135297c32328bb29a5d9e1b33d58e5655c9147 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of gldbg
-Copyright © 2010  Mikko Rasa, Mikkosoft Productions
-Distributed under the GPL
-*/
-
 #ifndef INSPECTOR_H_
 #define INSPECTOR_H_
 
@@ -14,16 +7,29 @@ Distributed under the GPL
 class Inspector: public RegisteredTool<Inspector>
 {
 private:
+       GlDbg &gldbg;
        GlState state;
+       GlDecoder *decoder;
+       int query_state;
 
 public:
        Inspector(GlDbg &);
+       ~Inspector();
 
        virtual void decode(const char *, unsigned);
+       virtual void process_started();
+       virtual void process_stopped(int);
+
 private:
+       static void gldBreak(void *, unsigned short, unsigned char);
+
+       void print_indented(const std::string &, unsigned);
+
        void cmd_state(const std::string &);
        void cmd_texture(const std::string &);
        void cmd_buffer(const std::string &);
+       void cmd_shader(const std::string &);
+       void cmd_program(const std::string &);
 };
 
 #endif