[PATCH] Include some methods in ID3DXMatrixStack for the d3dx8math =

Adam David (none) david at Goss.
Thu Nov 29 08:41:46 CST 2007


header file

---
 include/d3dx8math.h |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/include/d3dx8math.h b/include/d3dx8math.h
index 1863ac0..26afe78 100644
--- a/include/d3dx8math.h
+++ b/include/d3dx8math.h
@@ -30,6 +30,12 @@
 #define D3DXToRadian(degree) ((degree) * (D3DX_PI / 180.0f))
 #define D3DXToDegree(radian) ((radian) * (180.0f / D3DX_PI))
=20
+
+typedef struct ID3DXMatrixStack *LPD3DXMATRIXSTACK;
+
+DEFINE_GUID(IID_ID3DXMatrixStack,
+0xe3357330, 0xcc5e, 0x11d2, 0xa4, 0x34, 0x0, 0xa0, 0xc9, 0x6, 0x29, 0xa8);
+
 typedef struct D3DXVECTOR2
 {
 #ifdef __cplusplus
@@ -345,6 +351,24 @@ D3DXVECTOR4* WINAPI D3DXVec4Transform(D3DXVECTOR4 *pout=
, CONST D3DXVECTOR4 *pv,
 }
 #endif
=20
+#define INTERFACE ID3DXMatrixStack
+DECLARE_INTERFACE_(ID3DXMatrixStack, IUnknown)
+{
+    STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
+    STDMETHOD_(ULONG,AddRef)(THIS) PURE;
+    STDMETHOD_(ULONG,Release)(THIS) PURE;
+};
+#undef INTERFACE
+
+#if !defined(__cplusplus) || defined(CINTERFACE)
+
+#define ID3DXMatrixStack_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(=
p,a,b)
+#define ID3DXMatrixStack_AddRef(p)             (p)->lpVtbl->AddRef(p)
+#define ID3DXMatrixStack_Release(p)            (p)->lpVtbl->Release(p)
+
+#endif
+
+
 #include <d3dx8math.inl>
=20
 #endif /* __D3DX8MATH_H__ */
--=20
1.5.3.2


--=_3lry6pkskge8--



More information about the wine-patches mailing list