ホーム › Graphics.DirectComposition › IDCompositionVisual3
IDCompositionVisual3
COMメソッド 8
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 26 HRESULT SetDepthMode(DCOMPOSITION_DEPTH_MODE mode)
| mode | DCOMPOSITION_DEPTH_MODE | in | 深度バッファの使用方法を指定するDCOMPOSITION_DEPTH_MODE列挙値である。 |
vtbl 27 HRESULT SetOffsetZ(IDCompositionAnimation* animation)
| animation | IDCompositionAnimation* | in | Z軸オフセットを時間変化させるアニメーションオブジェクト。NULL不可。 |
| offsetZ | FLOAT | in | ビジュアルのZ軸方向のオフセット量。奥行き位置を表す浮動小数点値である。 |
vtbl 29 HRESULT SetOpacity(IDCompositionAnimation* animation)
| animation | IDCompositionAnimation* | in | 不透明度を時間変化させるアニメーションオブジェクト。NULL不可。 |
| opacity | FLOAT | in | ビジュアルの不透明度。0.0で完全透明、1.0で完全不透明を表す。 |
vtbl 31 HRESULT SetTransform(IDCompositionTransform3D* transform)
| transform | IDCompositionTransform3D* | inoptional | ビジュアルに適用する3D変換オブジェクトへのポインタである。 |
vtbl 32 HRESULT SetTransform(D2D_MATRIX_4X4_F* matrix)
| matrix | D2D_MATRIX_4X4_F* | in | ビジュアルに適用する4x4変換行列(D2D_MATRIX_4X4_F)へのポインタである。 |
| visible | BOOL | in | ビジュアルの可視状態。TRUEで表示、FALSEで非表示を指定する。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IDCompositionVisual3 "{2775F462-B6C1-4015-B0BE-B3E7D6A4976D}" #usecom global IDCompositionVisual3 IID_IDCompositionVisual3 "{}" #comfunc global IDCompositionVisual3_SetDepthMode 26 int #comfunc global IDCompositionVisual3_SetOffsetZ 27 sptr #comfunc global IDCompositionVisual3_SetOffsetZ 28 float #comfunc global IDCompositionVisual3_SetOpacity 29 sptr #comfunc global IDCompositionVisual3_SetOpacity 30 float #comfunc global IDCompositionVisual3_SetTransform 31 sptr #comfunc global IDCompositionVisual3_SetTransform 32 var #comfunc global IDCompositionVisual3_SetVisible 33 int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IDCompositionVisual3 "{2775F462-B6C1-4015-B0BE-B3E7D6A4976D}" #usecom global IDCompositionVisual3 IID_IDCompositionVisual3 "{}" #comfunc global IDCompositionVisual3_SetDepthMode 26 int #comfunc global IDCompositionVisual3_SetOffsetZ 27 sptr #comfunc global IDCompositionVisual3_SetOffsetZ 28 float #comfunc global IDCompositionVisual3_SetOpacity 29 sptr #comfunc global IDCompositionVisual3_SetOpacity 30 float #comfunc global IDCompositionVisual3_SetTransform 31 sptr #comfunc global IDCompositionVisual3_SetTransform 32 sptr #comfunc global IDCompositionVisual3_SetVisible 33 int ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。