|
|
|
ID3DXConstantTable Interface |
|
' ****************************************************************************************
' ID3DXConstantTable interface
' $IID_ID3DXConstantTable = GUID$("{AB3C758F-093E-4356-B762-4DB18F1B3A01}")
' ****************************************************************************************
' ****************************************************************************************
' The ID3DXConstantTable interface is used to access the constant table. This table contains
' the variables that are used by high-level language shaders and effects.
' Interface Information
' Stock Implementation d3d9.dll
' Custom Implementation No
' Inherits from IUnknown
' Header d3dx9shader.h
' Import library d3dx9.lib
' Minimum operating systems Windows 98
' ****************************************************************************************
' ****************************************************************************************
'DECLARE_INTERFACE_(ID3DXConstantTable, IUnknown)
'{
' // IUnknown
' 0. STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
' 1. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
' 2. STDMETHOD_(ULONG, Release)(THIS) PURE;
' // Buffer
' 3. STDMETHOD_(LPVOID, GetBufferPointer)(THIS) PURE;
' 4. STDMETHOD_(DWORD, GetBufferSize)(THIS) PURE;
' // Descs
' 5. STDMETHOD(GetDesc)(THIS_ ID3DXConstantTable_DESC *pDesc) PURE;
' 6. STDMETHOD(GetConstantDesc)(THIS_ D3DXHANDLE hConstant, D3DXCONSTANT_DESC *pConstantDesc, UINT *pCount) PURE;
' 7. STDMETHOD_(UINT, GetSamplerIndex)(THIS_ D3DXHANDLE hConstant) PURE;
' // Handle operations
' 8. STDMETHOD_(D3DXHANDLE, GetConstant)(THIS_ D3DXHANDLE hConstant, UINT Index) PURE;
' 9. STDMETHOD_(D3DXHANDLE, GetConstantByName)(THIS_ D3DXHANDLE hConstant, LPCSTR pName) PURE;
' 10. STDMETHOD_(D3DXHANDLE, GetConstantElement)(THIS_ D3DXHANDLE hConstant, UINT Index) PURE;
' // Set Constants
' 11. STDMETHOD(SetDefaults)(THIS_ LPDIRECT3DDEVICE9 pDevice) PURE;
' 12. STDMETHOD(SetValue)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, LPCVOID pData, UINT Bytes) PURE;' STDMETHOD(SetBool)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, BOOL b) PURE;
' 13. STDMETHOD(SetBool)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, BOOL b) PURE;
' 14. STDMETHOD(SetBoolArray)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST BOOL* pb, UINT Count) PURE;
' 15. STDMETHOD(SetInt)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, INT n) PURE;
' 16. STDMETHOD(SetIntArray)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST INT* pn, UINT Count) PURE;
' 17. STDMETHOD(SetFloat)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, FLOAT f) PURE;
' 18. STDMETHOD(SetFloatArray)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST FLOAT* pf, UINT Count) PURE;
' 19. STDMETHOD(SetVector)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST D3DXVECTOR4* pVector) PURE;
' 20. STDMETHOD(SetVectorArray)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST D3DXVECTOR4* pVector, UINT Count) PURE;
' 21. STDMETHOD(SetMatrix)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST D3DXMATRIX* pMatrix) PURE;
' 22. STDMETHOD(SetMatrixArray)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST D3DXMATRIX* pMatrix, UINT Count) PURE;
' 23. STDMETHOD(SetMatrixPointerArray)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST D3DXMATRIX** ppMatrix, UINT Count) PURE;
' 24. STDMETHOD(SetMatrixTranspose)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST D3DXMATRIX* pMatrix) PURE;
' 25. STDMETHOD(SetMatrixTransposeArray)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST D3DXMATRIX* pMatrix, UINT Count) PURE;
' 26. STDMETHOD(SetMatrixTransposePointerArray)(THIS_ LPDIRECT3DDEVICE9 pDevice, D3DXHANDLE hConstant, CONST D3DXMATRIX** ppMatrix, UINT Count) PURE;
'};
' ****************************************************************************************
' ****************************************************************************************
' GetBufferPointer method
' Gets a pointer to the buffer that contains the constant table.
' LPVOID GetBufferPointer();
' ****************************************************************************************
FUNCTION ID3DXConstantTable_GetBufferPointer ALIAS "ID3DXConstantTable_GetBufferPointer" (BYVAL pthis AS DWORD PTR) EXPORT AS DWORD
LOCAL DWRESULT AS DWORD
IF pthis = %NULL THEN EXIT FUNCTION
CALL DWORD @@pthis[3] USING ID3DXConstantTable_GetBufferPointer(pthis) TO DWRESULT
FUNCTION = DWRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetBufferSize method
' Gets the buffer size of the constant table.
' DWORD GetBufferSize();
' ****************************************************************************************
FUNCTION ID3DXConstantTable_GetBufferSize ALIAS "ID3DXConstantTable_GetBufferSize" (BYVAL pthis AS DWORD PTR) EXPORT AS DWORD
LOCAL DWRESULT AS DWORD
IF pthis = %NULL THEN EXIT FUNCTION
CALL DWORD @@pthis[4] USING ID3DXConstantTable_GetBufferSize(pthis) TO DWRESULT
FUNCTION = DWRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetDesc method
' Gets a description of the constant table.
' HRESULT GetDesc(
' ID3DXConstantTable_DESC* pDesc
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_GetDesc ALIAS "ID3DXConstantTable_GetDesc" ( _
BYVAL pthis AS DWORD PTR, BYREF pDesc AS D3DXCONSTANTTABLE_DESC) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[5] USING ID3DXConstantTable_GetDesc(pthis, pDesc) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetConstantDesc method
' Gets a pointer to an array of constant descriptions in the constant table.
' HRESULT GetConstantDesc(
' D3DXHANDLE hConstant,
' D3DXCONSTANT_DESC * pDesc,
' UINT * pCount
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_GetConstantDesc ALIAS "ID3DXConstantTable_GetConstantDesc" ( _
BYVAL pthis AS DWORD PTR, BYVAL hConstant AS DWORD, _
BYREF pDesc AS D3DXCONSTANT_DESC, BYREF pCount AS DWORD) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[6] USING ID3DXConstantTable_GetConstantDesc(pthis, hConstant, pDesc, pCount) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetSamplerIndex method
' Returns the sampler index.
' UINT GetSamplerIndex(
' D3DXHANDLE hConstant
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_GetSamplerIndex ALIAS "ID3DXConstantTable_GetSamplerIndex" ( _
BYVAL pthis AS DWORD PTR, BYREF hConstant AS DWORD) EXPORT AS DWORD
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN EXIT FUNCTION
CALL DWORD @@pthis[7] USING ID3DXConstantTable_GetSamplerIndex(pthis, hConstant) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetConstant method
' Gets a constant by looking up its index.
' D3DXHANDLE GetConstant(
' D3DXHANDLE hConstant,
' UINT Index
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_GetConstant ALIAS "ID3DXConstantTable_GetConstant" ( _
BYVAL pthis AS DWORD PTR, BYVAL hConstant AS DWORD, BYVAL Index AS DWORD) EXPORT AS DWORD
LOCAL DWRESULT AS DWORD
IF pthis = %NULL THEN EXIT FUNCTION
CALL DWORD @@pthis[8] USING ID3DXConstantTable_GetConstant(pthis, hConstant, Index) TO DWRESULT
FUNCTION = DWRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetConstantByName method
' Gets a constant by looking up its name.
' D3DXHANDLE GetConstantByName(
' D3DXHANDLE hConstant,
' LPCSTR pName
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_GetConstantByName ALIAS "ID3DXConstantTable_GetConstantByName" ( _
BYVAL pthis AS DWORD PTR, BYVAL hConstant AS DWORD, BYREF pName AS ASCIIZ) EXPORT AS DWORD
LOCAL DWRESULT AS DWORD
IF pthis = %NULL THEN EXIT FUNCTION
CALL DWORD @@pthis[9] USING ID3DXConstantTable_GetConstantByName(pthis, hConstant, pName) TO DWRESULT
FUNCTION = DWRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetConstantElement method
' Gets a constant from an array of constants. An array is made up of elements.
' D3DXHANDLE GetConstantElement(
' D3DXHANDLE hConstant,
' UINT Index
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_GetConstantElement ALIAS "ID3DXConstantTable_GetConstantElement" ( _
BYVAL pthis AS DWORD PTR, BYVAL hConstant AS DWORD, BYVAL Index AS DWORD) EXPORT AS DWORD
LOCAL DWRESULT AS DWORD
IF pthis = %NULL THEN EXIT FUNCTION
CALL DWORD @@pthis[10] USING ID3DXConstantTable_GetConstantElement(pthis, hConstant, Index) TO DWRESULT
FUNCTION = DWRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetDefaults method
' Sets the constants to their default values. The default values are declared in the
' variable declarations in the shader.
' HRESULT SetDefaults(
' LPDIRECT3DDEVICE9 pDevice
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_SetDefaults ALIAS "ID3DXConstantTable_SetDefaults" ( _
BYVAL pthis AS DWORD PTR, BYVAL pDevice AS DWORD) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[11] USING ID3DXConstantTable_SetDefaults(pthis, pDevice) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetValue method
' Sets the contents of the buffer to the constant table.
' HRESULT SetValue(
' LPDIRECT3DDEVICE9 pDevice,
' D3DXHANDLE hConstant,
' LPCVOID pData,
' UINT Bytes
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_SetValue ALIAS "ID3DXConstantTable_SetValue" ( _
BYVAL pthis AS DWORD PTR, BYVAL pDevice AS DWORD, BYVAL hConstant AS DWORD, _
BYVAL pData AS DWORD, BYVAL Bytes AS DWORD) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[12] USING ID3DXConstantTable_SetValue(pthis, pDevice, hConstant, pData, Bytes) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetBool method
' Sets a Boolean value.
' HRESULT SetBool(
' LPDIRECT3DDEVICE9 pDevice,
' D3DXHANDLE hConstant,
' BOOL b
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_SetBool ALIAS "ID3DXConstantTable_SetBool" ( _
BYVAL pthis AS DWORD PTR, BYVAL pDevice AS DWORD, BYVAL hConstant AS DWORD, _
BYVAL b AS LONG) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[13] USING ID3DXConstantTable_SetBool(pthis, pDevice, hConstant, b) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetBoolArray method
' Sets an array of Boolean values.
' HRESULT SetBoolArray(
' LPDIRECT3DDEVICE9 pDevice,
' D3DXHANDLE hConstant,
' CONST BOOL* pB,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_SetBoolArray ALIAS "ID3DXConstantTable_SetBoolArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL pDevice AS DWORD, BYVAL hConstant AS DWORD, _
BYVAL pB AS DWORD, BYVAL Count AS DWORD) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[14] USING ID3DXConstantTable_SetBoolArray(pthis, pDevice, hConstant, pB, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetInt method
' Sets an integer value.
' HRESULT SetInt(
' LPDIRECT3DDEVICE9 pDevice,
' D3DXHANDLE hConstant,
' INT n
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_SetInt ALIAS "ID3DXConstantTable_SetInt" ( _
BYVAL pthis AS DWORD PTR, BYVAL pDevice AS DWORD, BYVAL hConstant AS DWORD, _
BYVAL n AS LONG) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[15] USING ID3DXConstantTable_SetInt(pthis, pDevice, hConstant, n) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetIntArray method
' Sets an array of integers.
' HRESULT SetIntArray(
' LPDIRECT3DDEVICE9 pDevice,
' D3DXHANDLE hConstant,
' CONST INT* pn,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_SetIntArray ALIAS "ID3DXConstantTable_SetIntArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL pDevice AS DWORD, BYVAL hConstant AS DWORD, _
BYVAL pn AS DWORD, BYVAL Count AS DWORD) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[16] USING ID3DXConstantTable_SetIntArray(pthis, pDevice, hConstant, pn, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetFloat method
' Sets a floating-point number.
' HRESULT SetFloat(
' LPDIRECT3DDEVICE9 pDevice,
' D3DXHANDLE hConstant,
' FLOAT f
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_SetFloat ALIAS "ID3DXConstantTable_SetFloat" ( _
BYVAL pthis AS DWORD PTR, BYVAL pDevice AS DWORD, BYVAL hConstant AS DWORD, _
BYVAL f AS SINGLE) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[17] USING ID3DXConstantTable_SetFloat(pthis, pDevice, hConstant, f) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetFloatArray method
' Sets an array of floating-point numbers.
' HRESULT SetFloatArray(
' LPDIRECT3DDEVICE9 pDevice,
' D3DXHANDLE hConstant,
' CONST FLOAT* pf,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_SetFloatArray ALIAS "ID3DXConstantTable_SetFloatArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL pDevice AS DWORD, BYVAL hConstant AS DWORD, _
BYVAL pf AS DWORD, BYVAL Count AS DWORD) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[18] USING ID3DXConstantTable_SetFloatArray(pthis, pDevice, hConstant, pf, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetVector method
' Sets a 4-D vector.
' HRESULT SetVector(
' LPDIRECT3DDEVICE9 pDevice,
' D3DXHANDLE hConstant,
' CONST D3DXVECTOR4* pVector
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_SetVector ALIAS "ID3DXConstantTable_SetVector" ( _
BYVAL pthis AS DWORD PTR, BYVAL pDevice AS DWORD, BYVAL hConstant AS DWORD, _
BYVAL pVector AS D3DXVECTOR4) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[19] USING ID3DXConstantTable_SetVector(pthis, pDevice, hConstant, pVector) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetVectorArray method
' Sets an array of 4-D vectors.
' HRESULT SetVectorArray(
' LPDIRECT3DDEVICE9 pDevice,
' D3DXHANDLE hConstant,
' CONST D3DXVECTOR4* pVector,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_SetVectorArray ALIAS "ID3DXConstantTable_SetVectorArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL pDevice AS DWORD, BYVAL hConstant AS DWORD, _
BYVAL pVector AS DWORD, BYVAL Count AS DWORD) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[20] USING ID3DXConstantTable_SetVectorArray(pthis, pDevice, hConstant, pVector, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetMatrix method
' Sets a nontransposed matrix.
' HRESULT SetMatrix(
' LPDIRECT3DDEVICE9 pDevice,
' D3DXHANDLE hConstant,
' CONST D3DXMATRIX* pMatrix
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_SetMatrix ALIAS "ID3DXConstantTable_SetMatrix" ( _
BYVAL pthis AS DWORD PTR, BYVAL pDevice AS DWORD, BYVAL hConstant AS DWORD, _
BYREF pMatrix AS D3DXMATRIX) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[21] USING ID3DXConstantTable_SetMatrix(pthis, pDevice, hConstant, pMatrix) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetMatrixArray method
' Sets an array of nontransposed matrices.
' HRESULT SetMatrixArray(
' LPDIRECT3DDEVICE9 pDevice,
' D3DXHANDLE hConstant,
' CONST D3DXMATRIX* pMatrix,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_SetMatrixArray ALIAS "ID3DXConstantTable_SetMatrixArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL pDevice AS DWORD, BYVAL hConstant AS DWORD, _
BYVAL pMatrix AS DWORD, BYVAL Count AS DWORD) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[22] USING ID3DXConstantTable_SetMatrixArray(pthis, pDevice, hConstant, pMatrix, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetMatrixPointerArray method
' Sets an array of pointers to nontransposed matrices.
' HRESULT SetMatrixPointerArray(
' LPDIRECT3DDEVICE9 pDevice,
' D3DXHANDLE hConstant,
' CONST D3DXMATRIX ** ppMatrix,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_SetMatrixPointerArray ALIAS "ID3DXConstantTable_SetMatrixPointerArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL pDevice AS DWORD, BYVAL hConstant AS DWORD, _
BYVAL ppMatrix AS DWORD, BYVAL Count AS DWORD) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[23] USING ID3DXConstantTable_SetMatrixPointerArray(pthis, pDevice, hConstant, ppMatrix, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetMatrixTranspose method
' Sets a transposed matrix.
' HRESULT SetMatrixTranspose(
' LPDIRECT3DDEVICE9 pDevice,
' D3DXHANDLE hConstant,
' CONST D3DXMATRIX* pMatrix
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_SetMatrixTranspose ALIAS "ID3DXConstantTable_SetMatrixTranspose" ( _
BYVAL pthis AS DWORD PTR, BYVAL pDevice AS DWORD, BYVAL hConstant AS DWORD, _
BYREF pMatrix AS D3DMATRIX) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[24] USING ID3DXConstantTable_SetMatrixTranspose(pthis, pDevice, hConstant, pMatrix) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetMatrixTransposeArray method
' Sets an array of transposed matrices.
' HRESULT SetMatrixTransposeArray(
' LPDIRECT3DDEVICE9 pDevice,
' D3DXHANDLE hConstant,
' CONST D3DXMATRIX* pMatrix,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_SetMatrixTransposeArray ALIAS "ID3DXConstantTable_SetMatrixTransposeArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL pDevice AS DWORD, BYVAL hConstant AS DWORD, _
BYVAL pMatrix AS DWORD, BYVAL Count AS DWORD) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[25] USING ID3DXConstantTable_SetMatrixTransposeArray(pthis, pDevice, hConstant, pMatrix, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetMatrixTransposePointerArray method
' Sets an array of pointers to transposed matrices.
' HRESULT SetMatrixTransposePointerArray(
' LPDIRECT3DDEVICE9 pDevice,
' D3DXHANDLE hConstant,
' CONST D3DXMATRIX** ppMatrix,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXConstantTable_SetMatrixTransposePointerArray ALIAS "ID3DXConstantTable_SetMatrixTransposePointerArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL pDevice AS DWORD, BYVAL hConstant AS DWORD, _
BYVAL ppMatrix AS DWORD, BYVAL Count AS DWORD) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[26] USING ID3DXConstantTable_SetMatrixTransposePointerArray(pthis, pDevice, hConstant, ppMatrix, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
|
Page last updated on Tuesday, 14 March 2006 23:46:44 +0100