]> git.cworth.org Git - apitrace/blob - README
Tweaks.
[apitrace] / README
1                                    API Trace
2
3
4 = Copyright =
5
6 Copyright 2008-2009 VMware, Inc.
7 All Rights Reserved.
8
9 Permission is hereby granted, free of charge, to any person obtaining a copy
10 of this software and associated documentation files (the "Software"), to deal
11 in the Software without restriction, including without limitation the rights
12 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13 copies of the Software, and to permit persons to whom the Software is
14 furnished to do so, subject to the following conditions:
15
16 The above copyright notice and this permission notice shall be included in
17 all copies or substantial portions of the Software.
18
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25 THE SOFTWARE.
26
27
28 = About =
29
30 Wrapper DLLs to trace D3D8, D3D9, and OpenGL APIs calls.
31
32 Based on the idea from Michael Koch. 
33
34 See also:
35 * http://www.mikoweb.eu/index.php?node=21
36 * http://www.codeguru.com/cpp/g-m/directx/directx8/article.php/c11453/
37 * http://doc.51windows.net/Directx9_SDK/?url=/directx9_sdk/graphics/programmingguide/TutorialsAndSamplesAndToolsAndTips/Tools/D3DSpy.htm
38
39
40 = Status =
41
42 * Only Direct3D 8 and 9 are supported at the moment.
43 * It has not been tested with many applications. Bugs may cause the application to crash. 
44
45
46 = Building from source =
47
48
49 == MSVC ==
50
51 Requirements:
52 * Python (tested with version 2.5)
53 * SCons (tested with 0.98.4)
54 * Microsoft Visual Studio (tested with 2005 version)
55 * Microsoft DirectX SDK (tested with August 2007 release)
56
57 Instructions:
58
59 * Invoke scons:
60
61  scons debug=no dxsdk=C:\DXSDK
62  
63
64 == MinGW crosscompiler == 
65
66 Requirements:
67 * apt-get install mingw32
68
69 Intructions:
70
71   scons platform=windows machine=x86 toolchain=crossmingw opengl32.dll
72
73
74 = Usage =
75
76 * Copy d3d8.dll, d3d9.dll, or opengl32.dll and apitrace.xsl to the directory with the application you want to trace.
77 * Run the application.
78 * Decompress the output .xml.gz and open the XML with Firefox or Internet Explorer to view the log. On Firefox hover on the arguments to see their contents.
79 * For long XML files is better to use xml2txt.py script directly on the .xml.gz file, as:
80
81   python xml2txt.py d3d9.xml.gz > d3d9.log
82
83 See also http://jrfonseca.blogspot.com/2008/07/tracing-d3d-applications.html