]> git.tdb.fi Git - gldbg.git/blobdiff - source/profiler.h
Move the profiler and inspector tools to the gl flavor
[gldbg.git] / source / profiler.h
diff --git a/source/profiler.h b/source/profiler.h
deleted file mode 100644 (file)
index 4d5c5a8..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-/* $Id$
-
-This file is part of gldbg
-Copyright © 2010  Mikko Rasa, Mikkosoft Productions
-Distributed under the GPL
-*/
-
-#ifndef PROFILER_H_
-#define PROFILER_H_
-
-#include <msp/time/timestamp.h>
-#include "gldecoder.h"
-#include "tool.h"
-
-class Profiler: public RegisteredTool<Profiler>
-{
-private:
-       GlDecoder *decoder;
-       bool enabled;
-       Msp::Time::TimeStamp start;
-       unsigned frames;
-       unsigned draw_calls;
-       unsigned vertices;
-       unsigned triangles;
-
-public:
-       Profiler(GlDbg &);
-
-       virtual void decode(const char *, unsigned);
-private:
-       void cmd_profile(const std::string &);
-
-       static void glDrawArrays(void *, GLenum, int, int);
-       static void glDrawElements(void *, GLenum, int, GLenum, const void *);
-       static void glDrawRangeElements(void *, GLenum, unsigned, unsigned, int, GLenum, const void *);
-       static void glXSwapBuffers(void *, Display *, GLXDrawable);
-};
-
-#endif