6 Copyright 2011 Jose Fonseca, Zack Rusin
7 Copyright 2008-2010 VMware, Inc.
10 Permission is hereby granted, free of charge, to any person obtaining a copy
11 of this software and associated documentation files (the "Software"), to deal
12 in the Software without restriction, including without limitation the rights
13 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14 copies of the Software, and to permit persons to whom the Software is
15 furnished to do so, subject to the following conditions:
17 The above copyright notice and this permission notice shall be included in
18 all copies or substantial portions of the Software.
20 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
31 This includes a set of tools for:
32 - trace OpenGL, D3D8, and D3D9 APIs calls to a file;
33 - retrace OpenGL calls from a file;
34 - visualize trace files, and inspect state.
39 * It has not been tested with many applications. Bugs in less used features may
40 cause application crashes.
41 * Direct3D 8 support is currently broken.
42 * No Direct3D retrace support
45 = Building from source =
47 Requirements common for all platforms:
48 * Python (requires version 2.6)
49 * CMake (tested with version 2.8)
51 Requirements to build the GUI (optional):
52 * Qt (tested with version 4.7)
53 * QJSON (tested with version 0.7.1)
68 * Microsoft Visual Studio (tested with 2008 version) or MinGW (tested with gcc version 4.4)
70 * Microsoft DirectX SDK (tested with August 2007 release)
72 To build with Visual Studio invoke CMake as:
74 cmake -G "Visual Studio 9 2008" -H. -Bbuild
75 cmake --build build --config MinSizeRel
77 It's also possible to build on Linux with MinGW cross compilers. See
78 http://www.cmake.org/Wiki/CmakeMingw for detailed instructions.
86 * Run the application you want to trace as
88 LD_PRELOAD=/path/to/libglxtrace.so /path/to/application
92 /path/to/dump application.trace
94 * Replay the trace with
96 /path/to/glretrace application.trace
101 * Copy opengl32.dll, d3d8.dll, or d3d9.dll from build/wrappers directory to the
102 directory with the application you want to trace.
104 * Run the application.
106 * View the trace with
108 /path/to/dump application.trace
110 * Replay the trace with
112 /path/to/glretrace application.trace
117 * http://jrfonseca.blogspot.com/2008/07/tracing-d3d-applications.html
122 * [http://www.mikoweb.eu/index.php?node=21 Proxy DLL]
123 * [http://www.codeguru.com/cpp/g-m/directx/directx8/article.php/c11453/ Intercept Calls to DirectX with a Proxy DLL]
124 * [http://doc.51windows.net/Directx9_SDK/?url=/directx9_sdk/graphics/programmingguide/TutorialsAndSamplesAndToolsAndTips/Tools/D3DSpy.htm D3DSpy]
125 * [http://msdn.microsoft.com/en-us/library/ee417062.aspx PIX]
130 * [http://www.opengl.org/sdk/tools/BuGLe/ BuGLe]
131 * [http://glintercept.nutty.org/ GLIntercept]
132 * [http://www.gremedy.com/products.php gDEBugger]