X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=flavors%2Fgl%2Fsource%2Finspector.h;h=3088a75d39590e0aa39e68db76b54a087baa4f5e;hb=d72ef6d75a11f6cc05ab8ec039520719e1044741;hp=91e2a46e817911dc78518d8e508ed820e388c3b6;hpb=f53057ce9b5eb3c7256a4aca95b4944733e14503;p=gldbg.git diff --git a/flavors/gl/source/inspector.h b/flavors/gl/source/inspector.h index 91e2a46..3088a75 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,28 @@ Distributed under the GPL class Inspector: public RegisteredTool { private: + GlDbg &gldbg; GlState state; + GlDecoder *decoder; + int query_state; public: Inspector(GlDbg &); 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