d3dx9_36: Fix AddRef and Release macros and add IID for ID3DXConstantTable.
This commit is contained in:
parent
88b2892a59
commit
3138ba0d5c
|
@ -112,6 +112,8 @@ typedef struct _D3DXCONSTANT_DESC
|
|||
LPCVOID DefaultValue;
|
||||
} D3DXCONSTANT_DESC, *LPD3DXCONSTANT_DESC;
|
||||
|
||||
DEFINE_GUID(IID_ID3DXConstantTable, 0x9dca3190, 0x38b9, 0x4fc3, 0x92, 0xe3, 0x39, 0xc6, 0xdd, 0xfb, 0x35, 0x8b);
|
||||
|
||||
#undef INTERFACE
|
||||
#define INTERFACE ID3DXConstantTable
|
||||
|
||||
|
@ -151,8 +153,8 @@ DECLARE_INTERFACE_(ID3DXConstantTable, ID3DXBuffer)
|
|||
#if !defined(__cplusplus) || defined(CINTERFACE)
|
||||
/*** IUnknown methods ***/
|
||||
#define ID3DXConstantTable_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
|
||||
#define ID3DXConstantTable_AddRef(p) (p)->lpVtbl->AddRef(p,a)
|
||||
#define ID3DXConstantTable_Release(p) (p)->lpVtbl->Release(p,a)
|
||||
#define ID3DXConstantTable_AddRef(p) (p)->lpVtbl->AddRef(p)
|
||||
#define ID3DXConstantTable_Release(p) (p)->lpVtbl->Release(p)
|
||||
/*** ID3DXBuffer methods ***/
|
||||
#define ID3DXConstantTable_GetBufferPointer(p) (p)->lpVtbl->GetBufferPointer(p)
|
||||
#define ID3DXConstantTable_GetBufferSize(p) (p)->lpVtbl->GetBufferSize(p)
|
||||
|
@ -181,8 +183,8 @@ DECLARE_INTERFACE_(ID3DXConstantTable, ID3DXBuffer)
|
|||
#else
|
||||
/*** IUnknown methods ***/
|
||||
#define ID3DXConstantTable_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
|
||||
#define ID3DXConstantTable_AddRef(p) (p)->AddRef(a)
|
||||
#define ID3DXConstantTable_Release(p) (p)->Release(a)
|
||||
#define ID3DXConstantTable_AddRef(p) (p)->AddRef()
|
||||
#define ID3DXConstantTable_Release(p) (p)->Release()
|
||||
/*** ID3DXBuffer methods ***/
|
||||
#define ID3DXConstantTable_GetBufferPointer(p) (p)->GetBufferPointer()
|
||||
#define ID3DXConstantTable_GetBufferSize(p) (p)->GetBufferSize()
|
||||
|
|
Loading…
Reference in New Issue