ホーム › Graphics.DirectComposition › IDCompositionDynamicTexture
IDCompositionDynamicTexture
COMメソッド 2
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT SetTexture(IDCompositionTexture* pTexture, RECT* pRects, UINT_PTR rectCount)
| pTexture | IDCompositionTexture* | in | ビジュアルに設定する合成テクスチャへのポインタである。NULL可。 |
| pRects | RECT* | in | 部分更新する領域を示す矩形配列へのポインタ。NULLで全体更新となる。 |
| rectCount | UINT_PTR | in | pRects配列に含まれる矩形の個数を指定する。 |
vtbl 4 HRESULT SetTexture(IDCompositionTexture* pTexture)
| pTexture | IDCompositionTexture* | in | ビジュアルに設定する合成テクスチャへのポインタである。NULL可。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IDCompositionDynamicTexture "{A1DE1D3F-6405-447F-8E95-1383A34B0277}" #usecom global IDCompositionDynamicTexture IID_IDCompositionDynamicTexture "{}" #comfunc global IDCompositionDynamicTexture_SetTexture 3 sptr,var,sptr #comfunc global IDCompositionDynamicTexture_SetTexture 4 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IDCompositionDynamicTexture "{A1DE1D3F-6405-447F-8E95-1383A34B0277}" #usecom global IDCompositionDynamicTexture IID_IDCompositionDynamicTexture "{}" #comfunc global IDCompositionDynamicTexture_SetTexture 3 sptr,sptr,sptr #comfunc global IDCompositionDynamicTexture_SetTexture 4 sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。