X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=flavors%2Fgl%2Fsource%2Finspector.h;h=15135297c32328bb29a5d9e1b33d58e5655c9147;hb=a34325fadec5b2be003bf9af1f081bfc4c83e8b6;hp=91e2a46e817911dc78518d8e508ed820e388c3b6;hpb=f53057ce9b5eb3c7256a4aca95b4944733e14503;p=gldbg.git diff --git a/flavors/gl/source/inspector.h b/flavors/gl/source/inspector.h index 91e2a46..1513529 100644 --- a/flavors/gl/source/inspector.h +++ b/flavors/gl/source/inspector.h @@ -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 { 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