]> git.cworth.org Git - apitrace/blobdiff - d3d8.py
Remove status section from README.
[apitrace] / d3d8.py
diff --git a/d3d8.py b/d3d8.py
index 720455480d67fe267ff3f917144e5d1f4c335438..73c9c85f8a8327f21eb2c5f023b7c0bfeb00dd2c 100644 (file)
--- a/d3d8.py
+++ b/d3d8.py
@@ -28,6 +28,7 @@
 from winapi import *
 from d3d8types import *
 from d3d8caps import *
+from trace import DllTracer
 
 HRESULT = Enum("HRESULT", [
     "D3D_OK",
@@ -273,17 +274,24 @@ IDirect3DVolume8.methods += [
     Method(HRESULT, "UnlockBox", []),
 ]
 
-d3d8 = Dll("d3d8")
-d3d8.functions += [
+d3d8 = API("d3d8")
+d3d8.add_functions([
     StdFunction(PDIRECT3D8, "Direct3DCreate8", [(UINT, "SDKVersion")]),
-]
+])
+
+
+class D3D8Tracer(DllTracer):
+
+    pass
+
 
 if __name__ == '__main__':
     print '#include <windows.h>'
-    print '#include <tchar.h>'
     print '#include <d3d8.h>'
     print
-    print '#include "log.hpp"'
+    print '#include "trace_write.hpp"'
+    print '#include "os.hpp"'
     print
-    wrap()
+    tracer = D3D8Tracer('d3d8.dll')
+    tracer.trace_api(d3d8)