ホーム › Graphics.DirectComposition › IDCompositionMatrixTransform3D
IDCompositionMatrixTransform3D
COMメソッド 3
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
| matrix | D3DMATRIX* | in | 3D変換に適用する4x4変換行列へのポインタ。D3DMATRIX構造体で指定する。 |
vtbl 4 HRESULT SetMatrixElement(INT row, INT column, IDCompositionAnimation* animation)
| row | INT | in | 変更対象の行列要素の行インデックス。0から3の範囲で指定する。 |
| column | INT | in | 変更対象の行列要素の列インデックス。0から3の範囲で指定する。 |
| animation | IDCompositionAnimation* | in | 指定行列要素の値を時間変化させるアニメーションオブジェクト。NULL不可。 |
| row | INT | in | 変更対象の行列要素の行インデックス。0から3の範囲で指定する。 |
| column | INT | in | 変更対象の行列要素の列インデックス。0から3の範囲で指定する。 |
| value | FLOAT | in | 指定した行列要素に設定する新しい浮動小数点値である。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IDCompositionMatrixTransform3D "{4B3363F0-643B-41B7-B6E0-CCF22D34467C}" #usecom global IDCompositionMatrixTransform3D IID_IDCompositionMatrixTransform3D "{}" #comfunc global IDCompositionMatrixTransform3D_SetMatrix 3 var #comfunc global IDCompositionMatrixTransform3D_SetMatrixElement 4 int,int,sptr #comfunc global IDCompositionMatrixTransform3D_SetMatrixElement 5 int,int,float ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IDCompositionMatrixTransform3D "{4B3363F0-643B-41B7-B6E0-CCF22D34467C}" #usecom global IDCompositionMatrixTransform3D IID_IDCompositionMatrixTransform3D "{}" #comfunc global IDCompositionMatrixTransform3D_SetMatrix 3 sptr #comfunc global IDCompositionMatrixTransform3D_SetMatrixElement 4 int,int,sptr #comfunc global IDCompositionMatrixTransform3D_SetMatrixElement 5 int,int,float ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。