|
|
|
ID3DXBaseEffect Interface |
|
' ****************************************************************************************
' ID3DXBaseEffect interface
' $IID_ID3DXBaseEffect = GUID$("{3B7A6FFB-3A69-46d7-BC01-A6B2AD4C2BB0}")
' ****************************************************************************************
' ****************************************************************************************
' Provides methods for getting and setting effect parameters such as constants, functions,
' shaders, and techniques.
' Remarks
' The LPD3DXBASEEFFECT type is defined as a pointer to this interface.
' Interface Information
' Stock Implementation d3d9.dll
' Custom Implementation No
' Inherits from IUnknown
' Header d3dx9effect.h
' Import library d3dx9.lib
' Minimum operating systems Windows 98
' ****************************************************************************************
' ****************************************************************************************
'DECLARE_INTERFACE_(ID3DXBaseEffect, IUnknown)
'{
' // IUnknown
' 0. STDMETHOD(QueryInterface)(THIS_ REFIID iid, LPVOID *ppv) PURE;
' 1. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
' 2. STDMETHOD_(ULONG, Release)(THIS) PURE;
' // Descs
' 3. STDMETHOD(GetDesc)(THIS_ ID3DXEffect_DESC* pDesc) PURE;
' 4. STDMETHOD(GetParameterDesc)(THIS_ D3DXHANDLE hParameter, D3DXPARAMETER_DESC* pDesc) PURE;
' 5. STDMETHOD(GetTechniqueDesc)(THIS_ D3DXHANDLE hTechnique, D3DXTECHNIQUE_DESC* pDesc) PURE;
' 6. STDMETHOD(GetPassDesc)(THIS_ D3DXHANDLE hPass, D3DXPASS_DESC* pDesc) PURE;
' 7. STDMETHOD(GetFunctionDesc)(THIS_ D3DXHANDLE hShader, D3DXFUNCTION_DESC* pDesc) PURE;
' // Handle operations
' 8. STDMETHOD_(D3DXHANDLE, GetParameter)(THIS_ D3DXHANDLE hParameter, UINT Index) PURE;
' 9. STDMETHOD_(D3DXHANDLE, GetParameterByName)(THIS_ D3DXHANDLE hParameter, LPCSTR pName) PURE;
' 10. STDMETHOD_(D3DXHANDLE, GetParameterBySemantic)(THIS_ D3DXHANDLE hParameter, LPCSTR pSemantic) PURE;
' 11. STDMETHOD_(D3DXHANDLE, GetParameterElement)(THIS_ D3DXHANDLE hParameter, UINT Index) PURE;
' 12. STDMETHOD_(D3DXHANDLE, GetTechnique)(THIS_ UINT Index) PURE;
' 13. STDMETHOD_(D3DXHANDLE, GetTechniqueByName)(THIS_ LPCSTR pName) PURE;
' 14. STDMETHOD_(D3DXHANDLE, GetPass)(THIS_ D3DXHANDLE hTechnique, UINT Index) PURE;
' 15. STDMETHOD_(D3DXHANDLE, GetPassByName)(THIS_ D3DXHANDLE hTechnique, LPCSTR pName) PURE;
' 16. STDMETHOD_(D3DXHANDLE, GetFunction)(THIS_ UINT Index) PURE;
' 17. STDMETHOD_(D3DXHANDLE, GetFunctionByName)(THIS_ LPCSTR pName) PURE;
' 18. STDMETHOD_(D3DXHANDLE, GetAnnotation)(THIS_ D3DXHANDLE hObject, UINT Index) PURE;
' 19. STDMETHOD_(D3DXHANDLE, GetAnnotationByName)(THIS_ D3DXHANDLE hObject, LPCSTR pName) PURE;
' // Get/Set Parameters
' 20. STDMETHOD(SetValue)(THIS_ D3DXHANDLE hParameter, LPCVOID pData, UINT Bytes) PURE;
' 21. STDMETHOD(GetValue)(THIS_ D3DXHANDLE hParameter, LPVOID pData, UINT Bytes) PURE;
' 22. STDMETHOD(SetBool)(THIS_ D3DXHANDLE hParameter, BOOL b) PURE;
' 23. STDMETHOD(GetBool)(THIS_ D3DXHANDLE hParameter, BOOL* pb) PURE;
' 24. STDMETHOD(SetBoolArray)(THIS_ D3DXHANDLE hParameter, CONST BOOL* pb, UINT Count) PURE;
' 25. STDMETHOD(GetBoolArray)(THIS_ D3DXHANDLE hParameter, BOOL* pb, UINT Count) PURE;
' 26. STDMETHOD(SetInt)(THIS_ D3DXHANDLE hParameter, INT n) PURE;
' 27. STDMETHOD(GetInt)(THIS_ D3DXHANDLE hParameter, INT* pn) PURE;
' 28. STDMETHOD(SetIntArray)(THIS_ D3DXHANDLE hParameter, CONST INT* pn, UINT Count) PURE;
' 29. STDMETHOD(GetIntArray)(THIS_ D3DXHANDLE hParameter, INT* pn, UINT Count) PURE;
' 30. STDMETHOD(SetFloat)(THIS_ D3DXHANDLE hParameter, FLOAT f) PURE;
' 31. STDMETHOD(GetFloat)(THIS_ D3DXHANDLE hParameter, FLOAT* pf) PURE;
' 32. STDMETHOD(SetFloatArray)(THIS_ D3DXHANDLE hParameter, CONST FLOAT* pf, UINT Count) PURE;
' 33. STDMETHOD(GetFloatArray)(THIS_ D3DXHANDLE hParameter, FLOAT* pf, UINT Count) PURE;
' 34. STDMETHOD(SetVector)(THIS_ D3DXHANDLE hParameter, CONST D3DXVECTOR4* pVector) PURE;
' 35. STDMETHOD(GetVector)(THIS_ D3DXHANDLE hParameter, D3DXVECTOR4* pVector) PURE;
' 36. STDMETHOD(SetVectorArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXVECTOR4* pVector, UINT Count) PURE;
' 37. STDMETHOD(GetVectorArray)(THIS_ D3DXHANDLE hParameter, D3DXVECTOR4* pVector, UINT Count) PURE;
' 38. STDMETHOD(SetMatrix)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix) PURE;
' 39. STDMETHOD(GetMatrix)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix) PURE;
' 40. STDMETHOD(SetMatrixArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix, UINT Count) PURE;
' 41. STDMETHOD(GetMatrixArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix, UINT Count) PURE;
' 42. STDMETHOD(SetMatrixPointerArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX** ppMatrix, UINT Count) PURE;
' 43. STDMETHOD(GetMatrixPointerArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX** ppMatrix, UINT Count) PURE;
' 44. STDMETHOD(SetMatrixTranspose)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix) PURE;
' 45. STDMETHOD(GetMatrixTranspose)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix) PURE;
' 46. STDMETHOD(SetMatrixTransposeArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX* pMatrix, UINT Count) PURE;
' 47. STDMETHOD(GetMatrixTransposeArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX* pMatrix, UINT Count) PURE;
' 48. STDMETHOD(SetMatrixTransposePointerArray)(THIS_ D3DXHANDLE hParameter, CONST D3DXMATRIX** ppMatrix, UINT Count) PURE;
' 49. STDMETHOD(GetMatrixTransposePointerArray)(THIS_ D3DXHANDLE hParameter, D3DXMATRIX** ppMatrix, UINT Count) PURE;
' 50. STDMETHOD(SetString)(THIS_ D3DXHANDLE hParameter, LPCSTR pString) PURE;
' 51. STDMETHOD(GetString)(THIS_ D3DXHANDLE hParameter, LPCSTR* ppString) PURE;
' 52. STDMETHOD(SetTexture)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DBASETEXTURE9 pTexture) PURE;
' 53. STDMETHOD(GetTexture)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DBASETEXTURE9 *ppTexture) PURE;
' 54. STDMETHOD(SetPixelShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DPIXELSHADER9 pPShader) PURE;
' 55. STDMETHOD(GetPixelShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DPIXELSHADER9 *ppPShader) PURE;
' 56. STDMETHOD(SetVertexShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DVERTEXSHADER9 pVShader) PURE;
' 57. STDMETHOD(GetVertexShader)(THIS_ D3DXHANDLE hParameter, LPDIRECT3DVERTEXSHADER9 *ppVShader) PURE;
' //Set Range of an Array to pass to device
' //Useful for sending only a subrange of an array down to the device
' 58. STDMETHOD(SetArrayRange)(THIS_ D3DXHANDLE hParameter, UINT uStart, UINT uEnd) PURE;
'};
' ****************************************************************************************
' ****************************************************************************************
' GetDesc method
' Gets the effect description.
' HRESULT GetDesc(
' ID3DXEffect_DESC* pDesc
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetDesc ALIAS "ID3DXBaseEffect_GetDesc" ( _
BYVAL pthis AS DWORD PTR, BYREF pDesc AS D3DXEFFECT_DESC) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[3] USING ID3DXBaseEffect_GetDesc(pthis, pDesc) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetParameterDesc method
' Gets a parameter or annotation description.
' HRESULT GetParameterDesc(
' D3DXHANDLE hParameter,
' D3DXPARAMETER_DESC* pDesc
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetParameterDesc ALIAS "ID3DXBaseEffect_GetParameterDesc" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter AS DWORD, BYREF pDesc AS D3DXEFFECT_DESC) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[4] USING ID3DXBaseEffect_GetParameterDesc(pthis, hParameter, pDesc) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetTechniqueDesc method
' Gets a technique description.
' HRESULT GetTechniqueDesc(
' D3DXHANDLE hTechnique,
' D3DXTECHNIQUE_DESC* pDesc
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetTechniqueDesc ALIAS "ID3DXBaseEffect_GetTechniqueDesc" ( _
BYVAL pthis AS DWORD PTR, BYVAL hTechnique AS DWORD, BYREF pDesc AS D3DXEFFECT_DESC) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[5] USING ID3DXBaseEffect_GetTechniqueDesc(pthis, hTechnique, pDesc) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetPassDesc method
' Gets a pass description.
' HRESULT GetPassDesc(
' D3DXHANDLE hPass,
' D3DXPASS_DESC* pDesc
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetPassDesc ALIAS "ID3DXBaseEffect_GetPassDesc" ( _
BYVAL pthis AS DWORD PTR, BYVAL hPass AS DWORD, BYREF pDesc AS D3DXEFFECT_DESC) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[6] USING ID3DXBaseEffect_GetPassDesc(pthis, hPass, pDesc) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetFunctionDesc method
' Gets a function description.
' HRESULT GetFunctionDesc(
' D3DXHANDLE hFunction,
' D3DXFUNCTION_DESC* pDesc
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetFunctionDesc ALIAS "ID3DXBaseEffect_GetFunctionDesc" ( _
BYVAL pthis AS DWORD PTR, BYVAL hFunction AS DWORD, BYREF pDesc AS D3DXEFFECT_DESC) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[7] USING ID3DXBaseEffect_GetFunctionDesc(pthis, hFunction, pDesc) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetParameter method
' Gets the handle of a top-level parameter or a structure member parameter.
' D3DXHANDLE GetParameter(
' D3DXHANDLE hParameter,
' UINT Index
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetParameter ALIAS "ID3DXBaseEffect_GetParameter" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter AS DWORD, BYVAL Index AS DWORD) EXPORT AS DWORD
LOCAL DWRESULT AS DWORD
IF pthis = %NULL THEN EXIT FUNCTION
CALL DWORD @@pthis[8] USING ID3DXBaseEffect_GetParameter(pthis, hParameter, Index) TO DWRESULT
FUNCTION = DWRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetParameterByName method
' Gets the handle of a top-level parameter or a structure member parameter by looking up
' its name.
' D3DXHANDLE GetParameterByName(
' D3DXHANDLE hParameter,
' LPCSTR pName
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetParameterByName ALIAS "ID3DXBaseEffect_GetParameterByName" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter AS DWORD, BYREF pName AS ASCIIZ) EXPORT AS DWORD
LOCAL DWRESULT AS DWORD
IF pthis = %NULL THEN EXIT FUNCTION
CALL DWORD @@pthis[9] USING ID3DXBaseEffect_GetParameterByName(pthis, hParameter, pName) TO DWRESULT
FUNCTION = DWRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetParameterBySemantic method
' Gets the handle of a top-level parameter or a structure member parameter by looking up
' its semantic with a case-insensitive search.
' D3DXHANDLE GetParameterBySemantic(
' D3DXHANDLE hParameter,
' LPCSTR pSemantic
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetParameterBySemantic ALIAS "ID3DXBaseEffect_GetParameterBySemantic" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter AS DWORD, BYREF pSemantic AS ASCIIZ) EXPORT AS DWORD
LOCAL DWRESULT AS DWORD
IF pthis = %NULL THEN EXIT FUNCTION
CALL DWORD @@pthis[10] USING ID3DXBaseEffect_GetParameterBySemantic(pthis, hParameter, pSemantic) TO DWRESULT
FUNCTION = DWRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetParameterElement method
' Get the handle of an array element parameter.
' D3DXHANDLE GetParameterElement(
' D3DXHANDLE hParameter,
' UINT ElementIndex
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetParameterElement ALIAS "ID3DXBaseEffect_GetParameterElement" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter AS DWORD, BYVAL ElementIndex AS DWORD) EXPORT AS DWORD
LOCAL DWRESULT AS DWORD
IF pthis = %NULL THEN EXIT FUNCTION
CALL DWORD @@pthis[11] USING ID3DXBaseEffect_GetParameterElement(pthis, hParameter, ElementIndex) TO DWRESULT
FUNCTION = DWRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetTechnique method
' Gets the handle of a technique.
' D3DXHANDLE GetTechnique(
' UINT Index
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetTechnique ALIAS "ID3DXBaseEffect_GetTechnique" ( _
BYVAL pthis AS DWORD PTR, BYVAL Index AS DWORD) EXPORT AS DWORD
LOCAL DWRESULT AS DWORD
IF pthis = %NULL THEN EXIT FUNCTION
CALL DWORD @@pthis[12] USING ID3DXBaseEffect_GetTechnique(pthis, Index) TO DWRESULT
FUNCTION = DWRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetTechniqueByName method
' Gets the handle of a technique by looking up its name.
' D3DXHANDLE GetTechniqueByName(
' LPCSTR pName
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetTechniqueByName ALIAS "ID3DXBaseEffect_GetTechniqueByName" ( _
BYVAL pthis AS DWORD PTR, BYREF pName AS ASCIIZ) EXPORT AS DWORD
LOCAL DWRESULT AS DWORD
IF pthis = %NULL THEN EXIT FUNCTION
CALL DWORD @@pthis[13] USING ID3DXBaseEffect_GetTechniqueByName(pthis, pName) TO DWRESULT
FUNCTION = DWRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetPass method
' Gets the handle of a pass.
' D3DXHANDLE GetPass(
' D3DXHANDLE hTechnique,
' UINT Index
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetPass ALIAS "ID3DXBaseEffect_GetPass" ( _
BYVAL pthis AS DWORD PTR, BYVAL hTechnique AS DWORD, BYVAL Index AS DWORD) EXPORT AS DWORD
LOCAL DWRESULT AS DWORD
IF pthis = %NULL THEN EXIT FUNCTION
CALL DWORD @@pthis[14] USING ID3DXBaseEffect_GetPass(pthis, hTechnique, Index) TO DWRESULT
FUNCTION = DWRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetPassByName method
' Gets the handle of a pass by looking up its name.
' D3DXHANDLE GetPassByName(
' D3DXHANDLE hTechnique,
' LPCSTR pName
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetPassByName ALIAS "ID3DXBaseEffect_GetPassByName" ( _
BYVAL pthis AS DWORD PTR, BYVAL hTechnique AS DWORD, BYREF pName AS ASCIIZ) EXPORT AS DWORD
LOCAL DWRESULT AS DWORD
IF pthis = %NULL THEN EXIT FUNCTION
CALL DWORD @@pthis[15] USING ID3DXBaseEffect_GetPassByName(pthis, hTechnique, pName) TO DWRESULT
FUNCTION = DWRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetFunction method
' Gets the handle of a function.
' D3DXHANDLE GetFunction(
' UINT Index
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetFunction ALIAS "ID3DXBaseEffect_GetFunction" ( _
BYVAL pthis AS DWORD PTR, BYVAL Index AS DWORD) EXPORT AS DWORD
LOCAL DWRESULT AS DWORD
IF pthis = %NULL THEN EXIT FUNCTION
CALL DWORD @@pthis[16] USING ID3DXBaseEffect_GetFunction(pthis, Index) TO DWRESULT
FUNCTION = DWRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetFunctionByName method
' Gets the handle of a function by looking up its name.
' D3DXHANDLE GetFunctionByName(
' LPCSTR pName
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetFunctionByName ALIAS "ID3DXBaseEffect_GetFunctionByName" ( _
BYVAL pthis AS DWORD PTR, BYREF pName AS ASCIIZ) EXPORT AS DWORD
LOCAL DWRESULT AS DWORD
IF pthis = %NULL THEN EXIT FUNCTION
CALL DWORD @@pthis[17] USING ID3DXBaseEffect_GetFunctionByName(pthis, pName) TO DWRESULT
FUNCTION = DWRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetAnnotation method
' Gets the handle of an annotation.
' D3DXHANDLE GetAnnotation(
' D3DXHANDLE hObject,
' UINT Index
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetAnnotation ALIAS "ID3DXBaseEffect_GetAnnotation" ( _
BYVAL pthis AS DWORD PTR, BYVAL hObject AS DWORD, BYVAL Index AS DWORD) EXPORT AS DWORD
LOCAL DWRESULT AS DWORD
IF pthis = %NULL THEN EXIT FUNCTION
CALL DWORD @@pthis[18] USING ID3DXBaseEffect_GetAnnotation(pthis, hObject, Index) TO DWRESULT
FUNCTION = DWRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetAnnotationByName method
' Gets the handle of an annotation by looking up its name.
' D3DXHANDLE GetAnnotationByName(
' D3DXHANDLE hObject,
' LPCSTR pName
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetAnnotationByName ALIAS "ID3DXBaseEffect_GetAnnotationByName" ( _
BYVAL pthis AS DWORD PTR, BYVAL hObject AS DWORD, BYREF pName AS ASCIIZ) EXPORT AS DWORD
LOCAL DWRESULT AS DWORD
IF pthis = %NULL THEN EXIT FUNCTION
CALL DWORD @@pthis[19] USING ID3DXBaseEffect_GetAnnotationByName(pthis, hObject, pName) TO DWRESULT
FUNCTION = DWRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetValue method
' Set the value of an arbitrary parameter or annotation, including simple types, structs,
' arrays, strings, shaders and textures. This method can be used in place of nearly all the
' Setxxx calls in ID3DXBaseEffect.
' HRESULT SetValue(
' D3DXHANDLE hParameter,
' LPCVOID pData,
' UINT Bytes
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_SetValue ALIAS "ID3DXBaseEffect_SetValue" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[20] USING ID3DXBaseEffect_SetValue(pthis, hParameter, pData, Bytes) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetValue method
' Get the value of an arbitrary parameter or annotation, including simple types, structs,
' arrays, strings, shaders and textures. This method can be used in place of nearly all the
' Getxxx calls in ID3DXBaseEffect.
' HRESULT GetValue(
' D3DXHANDLE hParameter,
' D3DXHANDLE hParameter,
' LPVOID pData,
' UINT Bytes
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetValue ALIAS "ID3DXBaseEffect_GetValue" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[21] USING ID3DXBaseEffect_GetValue(pthis, hParameter, pData, Bytes) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetBool method
' Sets a BOOL value.
' HRESULT SetBool(
' D3DXHANDLE hParameter,
' BOOL b
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_SetBool ALIAS "ID3DXBaseEffect_SetBool" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[22] USING ID3DXBaseEffect_SetBool(pthis, hParameter, b) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetBool method
' Gets a BOOL value.
' HRESULT GetBool(
' D3DXHANDLE hParameter,
' BOOL* pb
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetBool ALIAS "ID3DXBaseEffect_GetBool" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter AS DWORD, BYREF b AS LONG) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[23] USING ID3DXBaseEffect_GetBool(pthis, hParameter, b) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetBoolArray method
' Sets an array of Boolean values.
' HRESULT SetBoolArray(
' D3DXHANDLE hParameter,
' CONST BOOL* pB,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_SetBoolArray ALIAS "ID3DXBaseEffect_SetBoolArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[24] USING ID3DXBaseEffect_SetBoolArray(pthis, hParameter, pB, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetBoolArray method
' Gets an array of Boolean values.
' HRESULT GetBoolArray(
' D3DXHANDLE hParameter,
' BOOL* pB,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetBoolArray ALIAS "ID3DXBaseEffect_GetBoolArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[25] USING ID3DXBaseEffect_GetBoolArray(pthis, hParameter, pB, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetInt method
' Sets an integer.
' HRESULT SetInt(
' D3DXHANDLE hParameter,
' INT n
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_SetInt ALIAS "ID3DXBaseEffect_SetInt" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter AS DWORD, BYVAL n AS INTEGER) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[26] USING ID3DXBaseEffect_SetBool(pthis, hParameter, n) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetInt method
' Gets an integer.
' HRESULT GetInt(
' D3DXHANDLE hParameter,
' INT* pn
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetInt ALIAS "ID3DXBaseEffect_GetInt" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter AS DWORD, BYREF n AS INTEGER) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[27] USING ID3DXBaseEffect_GetInt(pthis, hParameter, n) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetIntArray method
' Sets an array of integer.
' HRESULT SetIntArray(
' D3DXHANDLE hParameter,
' CONST INT* pn,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_SetIntArray ALIAS "ID3DXBaseEffect_SetIntArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[28] USING ID3DXBaseEffect_SetIntArray(pthis, hParameter, pn, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetIntArray method
' Gets an array of integers.
' HRESULT GetIntArray(
' D3DXHANDLE hParameter,
' INT* pn,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetIntArray ALIAS "ID3DXBaseEffect_GetIntArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[29] USING ID3DXBaseEffect_GetIntArray(pthis, hParameter, pn, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetFloat method
' Sets a floating point value.
' HRESULT SetFloat(
' D3DXHANDLE hParameter,
' FLOAT f
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_SetFloat ALIAS "ID3DXBaseEffect_SetFloat" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[30] USING ID3DXBaseEffect_SetFloat(pthis, hParameter, f) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetFloat method
' Gets a floating point value.
' HRESULT GetFloat(
' D3DXHANDLE hParameter,
' FLOAT* pf
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetFloat ALIAS "ID3DXBaseEffect_GetFloat" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter AS DWORD, BYREF pf AS SINGLE) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[31] USING ID3DXBaseEffect_GetFloat(pthis, hParameter, pf) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetFloatArray method
' Sets an array of floating point values.
' HRESULT SetFloatArray(
' D3DXHANDLE hParameter,
' CONST FLOAT* pf,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_SetFloatArray ALIAS "ID3DXBaseEffect_SetFloatArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[32] USING ID3DXBaseEffect_SetFloatArray(pthis, hParameter, pf, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetFloatArray method
' Gets an array of integers.
' HRESULT GetFloatArray(
' D3DXHANDLE hParameter,
' FLOAT* pf,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetFloatArray ALIAS "ID3DXBaseEffect_GetFloatArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[33] USING ID3DXBaseEffect_GetFloatArray(pthis, hParameter, pf, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetVector method
' Sets a vector.
' HRESULT SetVector(
' D3DXHANDLE hParameter,
' CONST D3DXVECTOR4* pVector
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_SetVector ALIAS "ID3DXBaseEffect_SetVector" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter AS DWORD, BYREF pVector AS D3DXVECTOR4) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[34] USING ID3DXBaseEffect_SetVector(pthis, hParameter, pVector) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetVector method
' Gets a vector.
' HRESULT GetVector(
' D3DXHANDLE hParameter,
' D3DXVECTOR4* pVector
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetVector ALIAS "ID3DXBaseEffect_GetVector" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter AS DWORD, BYREF pVector AS D3DXVECTOR4) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[35] USING ID3DXBaseEffect_GetVector(pthis, hParameter, pVector) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetVectorArray method
' Sets an array of vectors.
' HRESULT SetVectorArray(
' D3DXHANDLE hParameter,
' CONST D3DXVECTOR4* pVector,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_SetVectorArray ALIAS "ID3DXBaseEffect_SetVectorArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[36] USING ID3DXBaseEffect_SetVectorArray(pthis, hParameter, pVector, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetVectorArray method
' Gets an array of vectors.
' HRESULT GetVectorArray(
' D3DXHANDLE hParameter,
' D3DXVECTOR4* pVector,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetVectorArray ALIAS "ID3DXBaseEffect_GetVectorArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[37] USING ID3DXBaseEffect_GetVectorArray(pthis, hParameter, pVector, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetMatrix method
' Sets a non-transposed matrix.
' HRESULT SetMatrix(
' D3DXHANDLE hParameter,
' CONST D3DXMATRIX* pMatrix
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_SetMatrix ALIAS "ID3DXBaseEffect_SetMatrix" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[38] USING ID3DXBaseEffect_SetMatrix(pthis, hParameter, pMatrix) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetMatrix method
' Gets a non-transposed matrix.
' HRESULT GetMatrix(
' D3DXHANDLE hParameter,
' D3DXMATRIX* pMatrix
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetMatrix ALIAS "ID3DXBaseEffect_GetMatrix" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[39] USING ID3DXBaseEffect_GetMatrix(pthis, hParameter, pMatrix) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetMatrixArray method
' Sets an array of nontransposed matrices.
' HRESULT SetMatrixArray(
' D3DXHANDLE hParameter,
' CONST D3DXMATRIX* pMatrix,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_SetMatrixArray ALIAS "ID3DXBaseEffect_SetMatrixArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[40] USING ID3DXBaseEffect_SetMatrixArray(pthis, hParameter, pMatrix, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetMatrixArray method
' Gets an array of nontransposed matrices.
' HRESULT GetMatrixArray(
' D3DXHANDLE hParameter,
' D3DXMATRIX* pMatrix,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetMatrixArray ALIAS "ID3DXBaseEffect_GetMatrixArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[41] USING ID3DXBaseEffect_GetMatrixArray(pthis, hParameter, pMatrix, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetMatrixPointerArray method
' Sets an array of nontransposed matrices.
' HRESULT SetMatrixPointerArray(
' D3DXHANDLE hParameter,
' CONST D3DXMATRIX** ppMatrix,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_SetMatrixPointerArray ALIAS "ID3DXBaseEffect_SetMatrixPointerArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[42] USING ID3DXBaseEffect_SetMatrixPointerArray(pthis, hParameter, ppMatrix, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetMatrixPointerArray method
' Gets an array of nontransposed matrices.
' HRESULT GetMatrixPointerArray(
' D3DXHANDLE hParameter,
' D3DXMATRIX ** ppMatrix,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetMatrixPointerArray ALIAS "ID3DXBaseEffect_GetMatrixPointerArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[43] USING ID3DXBaseEffect_GetMatrixPointerArray(pthis, hParameter, ppMatrix, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetMatrixTranspose method
' Sets a transposed matrix.
' HRESULT SetMatrixTranspose(
' D3DXHANDLE hParameter,
' CONST D3DXMATRIX* pMatrix
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_SetMatrixTranspose ALIAS "ID3DXBaseEffect_SetMatrixTranspose" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[44] USING ID3DXBaseEffect_SetMatrixTranspose(pthis, hParameter, pMatrix) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetMatrixTranspose method
' Gets a transposed matrix.
' HRESULT GetMatrixTranspose(
' D3DXHANDLE hParameter,
' D3DXMATRIX* pMatrix
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetMatrixTranspose ALIAS "ID3DXBaseEffect_GetMatrixTranspose" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[45] USING ID3DXBaseEffect_GetMatrixTranspose(pthis, hParameter, pMatrix) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetMatrixTransposeArray method
' Sets an array of transposed matrices.
' HRESULT SetMatrixTransposeArray(
' D3DXHANDLE hParameter,
' CONST D3DXMATRIX* pMatrix,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_SetMatrixTransposeArray ALIAS "ID3DXBaseEffect_SetMatrixTransposeArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[46] USING ID3DXBaseEffect_SetMatrixTransposeArray(pthis, hParameter, pMatrix, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetMatrixTransposeArray method
' Gets an array of transposed matrices.
' HRESULT GetMatrixTransposeArray(
' D3DXHANDLE hParameter,
' D3DXMATRIX* pMatrix,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetMatrixTransposeArray ALIAS "ID3DXBaseEffect_GetMatrixTransposeArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[47] USING ID3DXBaseEffect_GetMatrixTransposeArray(pthis, hParameter, ppMatrix, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetMatrixTransposePointerArray method
' Sets an array of pointers to transposed matrices.
' HRESULT SetMatrixTransposePointerArray(
' D3DXHANDLE hParameter,
' CONST D3DXMATRIX** ppMatrix,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_SetMatrixTransposePointerArray ALIAS "ID3DXBaseEffect_SetMatrixTransposePointerArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[48] USING ID3DXBaseEffect_SetMatrixTransposePointerArray(pthis, hParameter, ppMatrix, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetMatrixTransposePointerArray method
' Gets an array of pointers to transposed matrices.
' HRESULT GetMatrixTransposePointerArray(
' D3DXHANDLE hParameter,
' D3DXMATRIX** ppMatrix,
' UINT Count
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetMatrixTransposePointerArray ALIAS "ID3DXBaseEffect_GetMatrixTransposePointerArray" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter 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[49] USING ID3DXBaseEffect_GetMatrixTransposePointerArray(pthis, hParameter, ppMatrix, Count) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetString
' Sets a string.
' HRESULT SetString(
' D3DXHANDLE hParameter,
' LPCSTR pString
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_SetString ALIAS "ID3DXBaseEffect_SetString" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter AS DWORD, BYREF pString AS ASCIIZ) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[50] USING ID3DXBaseEffect_SetString(pthis, hParameter, pString) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetString
' Gets a string.
' HRESULT GetString(
' D3DXHANDLE hParameter,
' LPCSTR* ppString
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetString ALIAS "ID3DXBaseEffect_GetString" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter AS DWORD, BYREF ppString AS DWORD) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[51] USING ID3DXBaseEffect_GetString(pthis, hParameter, ppString) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetTexture
' Sets a texture.
' HRESULT SetTexture(
' D3DXHANDLE hParameter,
' LPDIRECT3DBASETEXTURE9 pTexture
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_SetTexture ALIAS "ID3DXBaseEffect_SetTexture" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter AS DWORD, BYVAL pTexture AS DWORD) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[52] USING ID3DXBaseEffect_SetTexture(pthis, hParameter, pTexture) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetTexture
' Gets a texture.
' HRESULT GetTexture(
' D3DXHANDLE hParameter,
' LPDIRECT3DBASETEXTURE9* ppTexture
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetTexture ALIAS "ID3DXBaseEffect_GetTexture" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter AS DWORD, BYREF ppTexture AS DWORD) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[53] USING ID3DXBaseEffect_GetTexture(pthis, hParameter, ppTexture) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetPixelShader
' Sets a pixel shader.
' HRESULT SetPixelShader(
' IDirect3DPixelShader9* pShader
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_SetPixelShader ALIAS "ID3DXBaseEffect_SetPixelShader" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter AS DWORD, BYVAL pPShader AS DWORD) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[54] USING ID3DXBaseEffect_SetPixelShader(pthis, hParameter, pPShader) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetPixelShader
' Gets a pixel shader.
' HRESULT GetPixelShader(
' IDirect3DPixelShader9** ppShader
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetPixelShader ALIAS "ID3DXBaseEffect_GetPixelShader" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter AS DWORD, BYREF ppPShader AS DWORD) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[55] USING ID3DXBaseEffect_GetPixelShader(pthis, hParameter, ppPShader) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetVertexShader
' Sets a vertex shader.
' HRESULT SetVertexShader(
' IDirect3DVertexShader9* pShader
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_SetVertexShader ALIAS "ID3DXBaseEffect_SetVertexShader" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter AS DWORD, BYVAL pVertexShader AS DWORD) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[56] USING ID3DXBaseEffect_SetVertexShader(pthis, hParameter, pVertexShader) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' GetVertexShader
' Gets a vertex shader.
' HRESULT GetVertexShader(
' IDirect3DVertexShader9** ppShader
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_GetVertexShader ALIAS "ID3DXBaseEffect_GetVertexShader" ( _
BYVAL pthis AS DWORD PTR, BYVAL hParameter AS DWORD, BYVAL ppVShader AS DWORD) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[57] USING ID3DXBaseEffect_GetVertexShader(pthis, hParameter, ppVShader) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
' ****************************************************************************************
' SetArrayRange
' Set the range of an array to pass to the device.
' HRESULT SetArrayRange(
' D3DXHANDLE hParameter,
' UINT Start,
' UINT Stop
' );
' ****************************************************************************************
FUNCTION ID3DXBaseEffect_SetArrayRange ALIAS "ID3DXBaseEffect_SetArrayRange" ( _
BYVAL pthis AS DWORD PTR, BYVAL Start AS DWORD, BYVAL nStop AS DWORD) EXPORT AS LONG
LOCAL HRESULT AS LONG
IF pthis = %NULL THEN FUNCTION = %E_POINTER : EXIT FUNCTION
CALL DWORD @@pthis[58] USING ID3DXBaseEffect_SetArrayRange(pthis, start, nStop) TO HRESULT
FUNCTION = HRESULT
END FUNCTION
' ****************************************************************************************
|
Page last updated on Wednesday, 15 March 2006 00:30:20 +0100