]> git.cworth.org Git - apitrace/blobdiff - common/trace_tools.hpp
Add an "--api" option to "apitrace trace" allowing to choose egl.
[apitrace] / common / trace_tools.hpp
index f141d2cb669e4559afa3609041616877eea940ad..ed786e92cb5cc5d6dbcd0fb6772175e6facf1132 100644 (file)
@@ -38,13 +38,20 @@ namespace os {
 namespace trace {
 
 
+enum API {
+    API_GL, // GL + GLX/WGL/CGL
+    API_EGL, // GL/GLES1/GLES2/VG + EGL
+};
+
+
 os::Path
 findFile(const char *relPath, // path relative to the current program
          const char *absPath, // absolute path
          bool verbose);
 
 int
-traceProgram(char * const *argv,
+traceProgram(API api,
+             char * const *argv,
              const char *output = NULL,
              bool verbose = false);