]> git.cworth.org Git - apitrace/blobdiff - retrace.hpp
Use the glGetVertexAttrib*ARB as well.
[apitrace] / retrace.hpp
index c87fc946c9e5e8e647473f2352179ccbfdd34669..f134438e20dd7690ed61c9b40d4e773b7ee0ea39 100644 (file)
@@ -28,6 +28,9 @@
 
 #include <map>
 
+#include "trace_model.hpp"
+
+
 namespace retrace {
 
 
@@ -73,6 +76,30 @@ public:
 };
 
 
+/**
+ * Output verbosity when retracing files.
+ */
+extern int verbosity;
+
+
+void retrace_call(Trace::Call &call);
+
+void ignore(Trace::Call &call);
+void retrace_unknown(Trace::Call &call);
+
+
+typedef void (*Callback)(Trace::Call &call);
+
+struct Entry {
+    const char *name;
+    Callback callback;
+};
+
+#define RETRACE_DISPATCH_ENTRY(name) {#name, &retrace_##name}
+#define RETRACE_IGNORE_ENTRY(name) {#name, &retrace_ignore}
+
+void dispatch(Trace::Call &call, const Entry *entries, unsigned num_entries);
+
 } /* namespace retrace */
 
 #endif /* _RETRACE_HPP_ */