ホーム › Graphics.Direct3D9 › IDirect3DDevice9
IDirect3DDevice9
COMメソッド 116
vtbl = vtable インデックス(0始まり)。HSP等からCOMメソッドをインデックス指定で呼ぶ際に使用します。0〜2 は IUnknown。
vtbl 3 HRESULT TestCooperativeLevel()
vtbl 4 DWORD GetAvailableTextureMem()
vtbl 5 HRESULT EvictManagedResources()
vtbl 6 HRESULT GetDirect3D(IDirect3D9** ppD3D9)
| ppD3D9 | IDirect3D9** | out | このデバイスを作成したIDirect3D9オブジェクトのポインタを受け取る出力。 |
| pCaps | D3DCAPS9* | inout | デバイス能力情報を受け取るD3DCAPS9構造体へのポインタ。 |
vtbl 8 HRESULT GetDisplayMode(DWORD iSwapChain, D3DDISPLAYMODE* pMode)
| iSwapChain | DWORD | in | 対象スワップチェーンの0始まりのインデックス。 |
| pMode | D3DDISPLAYMODE* | inout | 現在の表示モードを受け取るD3DDISPLAYMODE構造体へのポインタ。 |
vtbl 9 HRESULT GetCreationParameters(D3DDEVICE_CREATION_PARAMETERS* pParameters)
| pParameters | D3DDEVICE_CREATION_PARAMETERS* | inout | デバイス作成時のパラメータを受け取るD3DDEVICE_CREATION_PARAMETERSへのポインタ。 |
vtbl 10 HRESULT SetCursorProperties(DWORD XHotSpot, DWORD YHotSpot, IDirect3DSurface9* pCursorBitmap)
| XHotSpot | DWORD | in | カーソルのホットスポットのX座標(ピクセル)。 |
| YHotSpot | DWORD | in | カーソルのホットスポットのY座標(ピクセル)。 |
| pCursorBitmap | IDirect3DSurface9* | in | カーソル画像となるIDirect3DSurface9へのポインタ。 |
| X | INT | in | カーソルを配置する画面X座標(ピクセル)。 |
| Y | INT | in | カーソルを配置する画面Y座標(ピクセル)。 |
| Flags | DWORD | in | 更新動作を示すフラグ。D3DCURSOR_IMMEDIATE_UPDATEなど。 |
| bShow | BOOL | in | ハードウェアカーソルの表示可否。TRUEで表示、FALSEで非表示。 |
vtbl 13 HRESULT CreateAdditionalSwapChain(D3DPRESENT_PARAMETERS* pPresentationParameters, IDirect3DSwapChain9** pSwapChain)
| pPresentationParameters | D3DPRESENT_PARAMETERS* | inout | 追加スワップチェーンの設定を記述するD3DPRESENT_PARAMETERSへのポインタ。 |
| pSwapChain | IDirect3DSwapChain9** | out | 作成されたIDirect3DSwapChain9のポインタを受け取る出力。 |
vtbl 14 HRESULT GetSwapChain(DWORD iSwapChain, IDirect3DSwapChain9** pSwapChain)
| iSwapChain | DWORD | in | 取得するスワップチェーンの0始まりのインデックス。 |
| pSwapChain | IDirect3DSwapChain9** | out | 取得したIDirect3DSwapChain9のポインタを受け取る出力。 |
vtbl 15 DWORD GetNumberOfSwapChains()
vtbl 16 HRESULT Reset(D3DPRESENT_PARAMETERS* pPresentationParameters)
| pPresentationParameters | D3DPRESENT_PARAMETERS* | inout | リセット時に適用する新しいD3DPRESENT_PARAMETERSへのポインタ。 |
vtbl 17 HRESULT Present(RECT* pSourceRect, RECT* pDestRect, HWND hDestWindowOverride, RGNDATA* pDirtyRegion)
| pSourceRect | RECT* | in | 転送元の矩形へのポインタ。NULLで全体を表す。 |
| pDestRect | RECT* | in | 転送先の矩形へのポインタ。NULLで全体を表す。 |
| hDestWindowOverride | HWND | in | 表示先を上書きするウィンドウハンドル。NULLで既定を使用。 |
| pDirtyRegion | RGNDATA* | in | 更新領域を示すRGNDATAへのポインタ。NULLで全体を更新する。 |
vtbl 18 HRESULT GetBackBuffer(DWORD iSwapChain, DWORD iBackBuffer, D3DBACKBUFFER_TYPE Type, IDirect3DSurface9** ppBackBuffer)
| iSwapChain | DWORD | in | 対象スワップチェーンの0始まりのインデックス。 |
| iBackBuffer | DWORD | in | 取得するバックバッファの0始まりのインデックス。 |
| Type | D3DBACKBUFFER_TYPE | in | バックバッファの種別を示すD3DBACKBUFFER_TYPE。通常はMONO。 |
| ppBackBuffer | IDirect3DSurface9** | out | 取得したバックバッファサーフェスのポインタを受け取る出力。 |
vtbl 19 HRESULT GetRasterStatus(DWORD iSwapChain, D3DRASTER_STATUS* pRasterStatus)
| iSwapChain | DWORD | in | 対象スワップチェーンの0始まりのインデックス。 |
| pRasterStatus | D3DRASTER_STATUS* | inout | 走査線の状態を受け取るD3DRASTER_STATUSへのポインタ。 |
| bEnableDialogs | BOOL | in | 全画面時にGDIダイアログ表示を許可するか。TRUEで有効。 |
vtbl 21 void SetGammaRamp(DWORD iSwapChain, DWORD Flags, D3DGAMMARAMP* pRamp)
| iSwapChain | DWORD | in | 対象スワップチェーンの0始まりのインデックス。 |
| Flags | DWORD | in | ガンマ適用方法を示すフラグ。D3DSGR_CALIBRATEなど。 |
| pRamp | D3DGAMMARAMP* | in | 設定するガンマ補正テーブルD3DGAMMARAMPへのポインタ。 |
vtbl 22 void GetGammaRamp(DWORD iSwapChain, D3DGAMMARAMP* pRamp)
| iSwapChain | DWORD | in | 対象スワップチェーンの0始まりのインデックス。 |
| pRamp | D3DGAMMARAMP* | inout | 現在のガンマ補正テーブルを受け取るD3DGAMMARAMPへのポインタ。 |
vtbl 23 HRESULT CreateTexture(DWORD Width, DWORD Height, DWORD Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DTexture9** ppTexture, HANDLE* pSharedHandle)
| Width | DWORD | in | テクスチャの幅(ピクセル)。 |
| Height | DWORD | in | テクスチャの高さ(ピクセル)。 |
| Levels | DWORD | in | ミップマップのレベル数。0で全レベルを自動生成する。 |
| Usage | DWORD | in | 用途を示すフラグ。RENDERTARGETやDYNAMICなどD3DUSAGE値。 |
| Format | D3DFORMAT | in | テクセルのD3DFORMATフォーマット。 |
| Pool | D3DPOOL | in | リソースの管理プールを示すD3DPOOL。DEFAULTやMANAGEDなど。 |
| ppTexture | IDirect3DTexture9** | out | 作成されたIDirect3DTexture9のポインタを受け取る出力。 |
| pSharedHandle | HANDLE* | inout | 共有リソース用ハンドルのポインタ。通常はNULL。 |
vtbl 24 HRESULT CreateVolumeTexture(DWORD Width, DWORD Height, DWORD Depth, DWORD Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DVolumeTexture9** ppVolumeTexture, HANDLE* pSharedHandle)
| Width | DWORD | in | ボリュームテクスチャの幅(ピクセル)。 |
| Height | DWORD | in | ボリュームテクスチャの高さ(ピクセル)。 |
| Depth | DWORD | in | ボリュームテクスチャの奥行き(ピクセル)。 |
| Levels | DWORD | in | ミップマップのレベル数。0で全レベルを自動生成する。 |
| Usage | DWORD | in | 用途を示すフラグ。DYNAMICなどD3DUSAGE値。 |
| Format | D3DFORMAT | in | テクセルのD3DFORMATフォーマット。 |
| Pool | D3DPOOL | in | リソースの管理プールを示すD3DPOOL。 |
| ppVolumeTexture | IDirect3DVolumeTexture9** | out | 作成されたIDirect3DVolumeTexture9のポインタを受け取る出力。 |
| pSharedHandle | HANDLE* | inout | 共有リソース用ハンドルのポインタ。通常はNULL。 |
vtbl 25 HRESULT CreateCubeTexture(DWORD EdgeLength, DWORD Levels, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DCubeTexture9** ppCubeTexture, HANDLE* pSharedHandle)
| EdgeLength | DWORD | in | キューブの各面の一辺の長さ(ピクセル)。 |
| Levels | DWORD | in | ミップマップのレベル数。0で全レベルを自動生成する。 |
| Usage | DWORD | in | 用途を示すフラグ。RENDERTARGETなどD3DUSAGE値。 |
| Format | D3DFORMAT | in | テクセルのD3DFORMATフォーマット。 |
| Pool | D3DPOOL | in | リソースの管理プールを示すD3DPOOL。 |
| ppCubeTexture | IDirect3DCubeTexture9** | out | 作成されたIDirect3DCubeTexture9のポインタを受け取る出力。 |
| pSharedHandle | HANDLE* | inout | 共有リソース用ハンドルのポインタ。通常はNULL。 |
vtbl 26 HRESULT CreateVertexBuffer(DWORD Length, DWORD Usage, DWORD FVF, D3DPOOL Pool, IDirect3DVertexBuffer9** ppVertexBuffer, HANDLE* pSharedHandle)
| Length | DWORD | in | 頂点バッファのサイズ(バイト)。 |
| Usage | DWORD | in | 用途を示すフラグ。DYNAMICやWRITEONLYなどD3DUSAGE値。 |
| FVF | DWORD | in | 格納する頂点の固定機能頂点フォーマット(FVF)コード。0も可。 |
| Pool | D3DPOOL | in | リソースの管理プールを示すD3DPOOL。 |
| ppVertexBuffer | IDirect3DVertexBuffer9** | out | 作成されたIDirect3DVertexBuffer9のポインタを受け取る出力。 |
| pSharedHandle | HANDLE* | inout | 共有リソース用ハンドルのポインタ。通常はNULL。 |
vtbl 27 HRESULT CreateIndexBuffer(DWORD Length, DWORD Usage, D3DFORMAT Format, D3DPOOL Pool, IDirect3DIndexBuffer9** ppIndexBuffer, HANDLE* pSharedHandle)
| Length | DWORD | in | インデックスバッファのサイズ(バイト)。 |
| Usage | DWORD | in | 用途を示すフラグ。DYNAMICなどD3DUSAGE値。 |
| Format | D3DFORMAT | in | インデックスのフォーマット。D3DFMT_INDEX16またはINDEX32。 |
| Pool | D3DPOOL | in | リソースの管理プールを示すD3DPOOL。 |
| ppIndexBuffer | IDirect3DIndexBuffer9** | out | 作成されたIDirect3DIndexBuffer9のポインタを受け取る出力。 |
| pSharedHandle | HANDLE* | inout | 共有リソース用ハンドルのポインタ。通常はNULL。 |
vtbl 28 HRESULT CreateRenderTarget(DWORD Width, DWORD Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Lockable, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle)
| Width | DWORD | in | レンダーターゲットの幅(ピクセル)。 |
| Height | DWORD | in | レンダーターゲットの高さ(ピクセル)。 |
| Format | D3DFORMAT | in | サーフェスのD3DFORMATフォーマット。 |
| MultiSample | D3DMULTISAMPLE_TYPE | in | マルチサンプリングの種別を示すD3DMULTISAMPLE_TYPE。 |
| MultisampleQuality | DWORD | in | マルチサンプル品質レベル(0始まり)。 |
| Lockable | BOOL | in | サーフェスをロック可能にするか。TRUEでロック可。 |
| ppSurface | IDirect3DSurface9** | out | 作成されたレンダーターゲットサーフェスのポインタを受け取る出力。 |
| pSharedHandle | HANDLE* | inout | 共有リソース用ハンドルのポインタ。通常はNULL。 |
vtbl 29 HRESULT CreateDepthStencilSurface(DWORD Width, DWORD Height, D3DFORMAT Format, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality, BOOL Discard, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle)
| Width | DWORD | in | 深度ステンシルサーフェスの幅(ピクセル)。 |
| Height | DWORD | in | 深度ステンシルサーフェスの高さ(ピクセル)。 |
| Format | D3DFORMAT | in | 深度ステンシルのD3DFORMATフォーマット。 |
| MultiSample | D3DMULTISAMPLE_TYPE | in | マルチサンプリングの種別を示すD3DMULTISAMPLE_TYPE。 |
| MultisampleQuality | DWORD | in | マルチサンプル品質レベル(0始まり)。 |
| Discard | BOOL | in | Present後に内容を破棄してよいか。TRUEで破棄可。 |
| ppSurface | IDirect3DSurface9** | out | 作成された深度ステンシルサーフェスのポインタを受け取る出力。 |
| pSharedHandle | HANDLE* | inout | 共有リソース用ハンドルのポインタ。通常はNULL。 |
vtbl 30 HRESULT UpdateSurface(IDirect3DSurface9* pSourceSurface, RECT* pSourceRect, IDirect3DSurface9* pDestinationSurface, POINT* pDestPoint)
| pSourceSurface | IDirect3DSurface9* | in | コピー元のIDirect3DSurface9へのポインタ。 |
| pSourceRect | RECT* | in | コピー元の矩形へのポインタ。NULLでサーフェス全体。 |
| pDestinationSurface | IDirect3DSurface9* | in | コピー先のIDirect3DSurface9へのポインタ。 |
| pDestPoint | POINT* | in | コピー先の左上座標を示すPOINTへのポインタ。NULLで原点。 |
vtbl 31 HRESULT UpdateTexture(IDirect3DBaseTexture9* pSourceTexture, IDirect3DBaseTexture9* pDestinationTexture)
| pSourceTexture | IDirect3DBaseTexture9* | in | コピー元のIDirect3DBaseTexture9へのポインタ。 |
| pDestinationTexture | IDirect3DBaseTexture9* | in | コピー先のIDirect3DBaseTexture9へのポインタ。 |
vtbl 32 HRESULT GetRenderTargetData(IDirect3DSurface9* pRenderTarget, IDirect3DSurface9* pDestSurface)
| pRenderTarget | IDirect3DSurface9* | in | 読み出し元のレンダーターゲットサーフェスへのポインタ。 |
| pDestSurface | IDirect3DSurface9* | in | データを受け取る転送先サーフェスへのポインタ。 |
vtbl 33 HRESULT GetFrontBufferData(DWORD iSwapChain, IDirect3DSurface9* pDestSurface)
| iSwapChain | DWORD | in | 対象スワップチェーンの0始まりのインデックス。 |
| pDestSurface | IDirect3DSurface9* | in | フロントバッファ内容を受け取る転送先サーフェスへのポインタ。 |
vtbl 34 HRESULT StretchRect(IDirect3DSurface9* pSourceSurface, RECT* pSourceRect, IDirect3DSurface9* pDestSurface, RECT* pDestRect, D3DTEXTUREFILTERTYPE Filter)
| pSourceSurface | IDirect3DSurface9* | in | 転送元のIDirect3DSurface9へのポインタ。 |
| pSourceRect | RECT* | in | 転送元の矩形へのポインタ。NULLで全体。 |
| pDestSurface | IDirect3DSurface9* | in | 転送先のIDirect3DSurface9へのポインタ。 |
| pDestRect | RECT* | in | 転送先の矩形へのポインタ。NULLで全体。 |
| Filter | D3DTEXTUREFILTERTYPE | in | 拡大縮小に用いる補間フィルタを示すD3DTEXTUREFILTERTYPE。 |
vtbl 35 HRESULT ColorFill(IDirect3DSurface9* pSurface, RECT* pRect, DWORD color)
| pSurface | IDirect3DSurface9* | in | 塗りつぶす対象のIDirect3DSurface9へのポインタ。 |
| pRect | RECT* | in | 塗りつぶす矩形へのポインタ。NULLでサーフェス全体。 |
| color | DWORD | in | 塗りつぶし色をARGB形式で示すDWORD。 |
vtbl 36 HRESULT CreateOffscreenPlainSurface(DWORD Width, DWORD Height, D3DFORMAT Format, D3DPOOL Pool, IDirect3DSurface9** ppSurface, HANDLE* pSharedHandle)
| Width | DWORD | in | サーフェスの幅(ピクセル)。 |
| Height | DWORD | in | サーフェスの高さ(ピクセル)。 |
| Format | D3DFORMAT | in | サーフェスのD3DFORMATフォーマット。 |
| Pool | D3DPOOL | in | リソースの管理プールを示すD3DPOOL。 |
| ppSurface | IDirect3DSurface9** | out | 作成されたオフスクリーンサーフェスのポインタを受け取る出力。 |
| pSharedHandle | HANDLE* | inout | 共有リソース用ハンドルのポインタ。通常はNULL。 |
vtbl 37 HRESULT SetRenderTarget(DWORD RenderTargetIndex, IDirect3DSurface9* pRenderTarget)
| RenderTargetIndex | DWORD | in | 設定するレンダーターゲットのスロット番号(0始まり)。 |
| pRenderTarget | IDirect3DSurface9* | in | 設定するレンダーターゲットサーフェスへのポインタ。NULLで解除。 |
vtbl 38 HRESULT GetRenderTarget(DWORD RenderTargetIndex, IDirect3DSurface9** ppRenderTarget)
| RenderTargetIndex | DWORD | in | 取得するレンダーターゲットのスロット番号(0始まり)。 |
| ppRenderTarget | IDirect3DSurface9** | out | 現在のレンダーターゲットサーフェスのポインタを受け取る出力。 |
vtbl 39 HRESULT SetDepthStencilSurface(IDirect3DSurface9* pNewZStencil)
| pNewZStencil | IDirect3DSurface9* | in | 設定する深度ステンシルサーフェスへのポインタ。NULLで解除。 |
vtbl 40 HRESULT GetDepthStencilSurface(IDirect3DSurface9** ppZStencilSurface)
| ppZStencilSurface | IDirect3DSurface9** | out | 現在の深度ステンシルサーフェスのポインタを受け取る出力。 |
vtbl 41 HRESULT BeginScene()
vtbl 42 HRESULT EndScene()
vtbl 43 HRESULT Clear(DWORD Count, D3DRECT* pRects, DWORD Flags, DWORD Color, FLOAT Z, DWORD Stencil)
| Count | DWORD | in | pRects配列の矩形数。0でビューポート全体を対象とする。 |
| pRects | D3DRECT* | in | クリアする矩形領域のD3DRECT配列へのポインタ。NULL可。 |
| Flags | DWORD | in | クリア対象を示すフラグ。TARGET/ZBUFFER/STENCILの組み合わせ。 |
| Color | DWORD | in | カラーバッファのクリア色をARGB形式で示すDWORD。 |
| Z | FLOAT | in | 深度バッファのクリア値(0.0〜1.0)。 |
| Stencil | DWORD | in | ステンシルバッファのクリア値を示すDWORD。 |
vtbl 44 HRESULT SetTransform(D3DTRANSFORMSTATETYPE State, D3DMATRIX* pMatrix)
| State | D3DTRANSFORMSTATETYPE | in | 設定する変換行列の種類を示すD3DTRANSFORMSTATETYPE。WORLDやVIEWなど。 |
| pMatrix | D3DMATRIX* | in | 設定する4x4変換行列D3DMATRIXへのポインタ。 |
vtbl 45 HRESULT GetTransform(D3DTRANSFORMSTATETYPE State, D3DMATRIX* pMatrix)
| State | D3DTRANSFORMSTATETYPE | in | 取得する変換行列の種類を示すD3DTRANSFORMSTATETYPE。 |
| pMatrix | D3DMATRIX* | inout | 現在の変換行列を受け取るD3DMATRIXへのポインタ。 |
vtbl 46 HRESULT MultiplyTransform(D3DTRANSFORMSTATETYPE param0, D3DMATRIX* param1)
| param0 | D3DTRANSFORMSTATETYPE | in | 対象とする変換行列の種類を示すD3DTRANSFORMSTATETYPE。 |
| param1 | D3DMATRIX* | in | 現在の行列に乗算するD3DMATRIXへのポインタ。 |
vtbl 47 HRESULT SetViewport(D3DVIEWPORT9* pViewport)
| pViewport | D3DVIEWPORT9* | in | 設定するビューポート領域を記述するD3DVIEWPORT9へのポインタ。 |
vtbl 48 HRESULT GetViewport(D3DVIEWPORT9* pViewport)
| pViewport | D3DVIEWPORT9* | inout | 現在のビューポート設定を受け取るD3DVIEWPORT9へのポインタ。 |
vtbl 49 HRESULT SetMaterial(D3DMATERIAL9* pMaterial)
| pMaterial | D3DMATERIAL9* | in | 設定する材質情報を記述するD3DMATERIAL9へのポインタ。 |
vtbl 50 HRESULT GetMaterial(D3DMATERIAL9* pMaterial)
| pMaterial | D3DMATERIAL9* | inout | 現在の材質情報を受け取るD3DMATERIAL9へのポインタ。 |
| Index | DWORD | in | 設定するライトのスロット番号(0始まり)。 |
| param1 | D3DLIGHT9* | in | ライトのプロパティを記述するD3DLIGHT9へのポインタ。 |
| Index | DWORD | in | 取得するライトのスロット番号(0始まり)。 |
| param1 | D3DLIGHT9* | inout | 現在のライト情報を受け取るD3DLIGHT9へのポインタ。 |
| Index | DWORD | in | 有効化または無効化するライトのスロット番号(0始まり)。 |
| Enable | BOOL | in | ライトを有効にするか。TRUEで有効、FALSEで無効。 |
| Index | DWORD | in | 状態を取得するライトのスロット番号(0始まり)。 |
| pEnable | BOOL* | inout | ライトの有効状態を受け取るBOOLポインタ。 |
| Index | DWORD | in | 設定するクリップ平面のインデックス(0始まり)。 |
| pPlane | FLOAT* | in | 平面方程式の係数4要素を持つFLOAT配列へのポインタ。 |
| Index | DWORD | in | 取得するクリップ平面のインデックス(0始まり)。 |
| pPlane | FLOAT* | inout | 平面方程式の係数4要素を受け取るFLOAT配列へのポインタ。 |
vtbl 57 HRESULT SetRenderState(D3DRENDERSTATETYPE State, DWORD Value)
| State | D3DRENDERSTATETYPE | in | 設定するレンダーステートの種類を示すD3DRENDERSTATETYPE。 |
| Value | DWORD | in | レンダーステートに設定する値を示すDWORD。 |
vtbl 58 HRESULT GetRenderState(D3DRENDERSTATETYPE State, DWORD* pValue)
| State | D3DRENDERSTATETYPE | in | 取得するレンダーステートの種類を示すD3DRENDERSTATETYPE。 |
| pValue | DWORD* | inout | 現在のレンダーステート値を受け取るDWORDポインタ。 |
vtbl 59 HRESULT CreateStateBlock(D3DSTATEBLOCKTYPE Type, IDirect3DStateBlock9** ppSB)
| Type | D3DSTATEBLOCKTYPE | in | 作成するステートブロックの種別を示すD3DSTATEBLOCKTYPE。ALLやPIXELSTATEなど。 |
| ppSB | IDirect3DStateBlock9** | out | 作成されたIDirect3DStateBlock9のポインタを受け取る出力。 |
vtbl 60 HRESULT BeginStateBlock()
vtbl 61 HRESULT EndStateBlock(IDirect3DStateBlock9** ppSB)
| ppSB | IDirect3DStateBlock9** | out | 記録を終了し作成されたステートブロックのポインタを受け取る出力。 |
vtbl 62 HRESULT SetClipStatus(D3DCLIPSTATUS9* pClipStatus)
| pClipStatus | D3DCLIPSTATUS9* | in | 設定するクリップステータスを記述するD3DCLIPSTATUS9へのポインタ。 |
vtbl 63 HRESULT GetClipStatus(D3DCLIPSTATUS9* pClipStatus)
| pClipStatus | D3DCLIPSTATUS9* | inout | 現在のクリップステータスを受け取るD3DCLIPSTATUS9へのポインタ。 |
vtbl 64 HRESULT GetTexture(DWORD Stage, IDirect3DBaseTexture9** ppTexture)
| Stage | DWORD | in | テクスチャを取得するテクスチャステージ番号(0始まり)。 |
| ppTexture | IDirect3DBaseTexture9** | out | 現在割り当てられたテクスチャのポインタを受け取る出力。 |
vtbl 65 HRESULT SetTexture(DWORD Stage, IDirect3DBaseTexture9* pTexture)
| Stage | DWORD | in | テクスチャを設定するテクスチャステージ番号(0始まり)。 |
| pTexture | IDirect3DBaseTexture9* | in | 設定するIDirect3DBaseTexture9へのポインタ。NULLで解除。 |
vtbl 66 HRESULT GetTextureStageState(DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD* pValue)
| Stage | DWORD | in | 対象のテクスチャステージ番号(0始まり)。 |
| Type | D3DTEXTURESTAGESTATETYPE | in | 取得するステート種類を示すD3DTEXTURESTAGESTATETYPE。 |
| pValue | DWORD* | inout | 現在のステート値を受け取るDWORDポインタ。 |
vtbl 67 HRESULT SetTextureStageState(DWORD Stage, D3DTEXTURESTAGESTATETYPE Type, DWORD Value)
| Stage | DWORD | in | 対象のテクスチャステージ番号(0始まり)。 |
| Type | D3DTEXTURESTAGESTATETYPE | in | 設定するステート種類を示すD3DTEXTURESTAGESTATETYPE。 |
| Value | DWORD | in | 設定するステート値を示すDWORD。 |
vtbl 68 HRESULT GetSamplerState(DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD* pValue)
| Sampler | DWORD | in | 対象のサンプラ番号(0始まり)。 |
| Type | D3DSAMPLERSTATETYPE | in | 取得するサンプラステート種類を示すD3DSAMPLERSTATETYPE。 |
| pValue | DWORD* | inout | 現在のサンプラステート値を受け取るDWORDポインタ。 |
vtbl 69 HRESULT SetSamplerState(DWORD Sampler, D3DSAMPLERSTATETYPE Type, DWORD Value)
| Sampler | DWORD | in | 対象のサンプラ番号(0始まり)。 |
| Type | D3DSAMPLERSTATETYPE | in | 設定するサンプラステート種類を示すD3DSAMPLERSTATETYPE。 |
| Value | DWORD | in | 設定するサンプラステート値を示すDWORD。 |
| pNumPasses | DWORD* | inout | 現在の状態で描画に必要なパス数を受け取るDWORDポインタ。 |
vtbl 71 HRESULT SetPaletteEntries(DWORD PaletteNumber, PALETTEENTRY* pEntries)
| PaletteNumber | DWORD | in | 設定するパレットの番号(0始まり)。 |
| pEntries | PALETTEENTRY* | in | 256要素のパレットを記述するPALETTEENTRY配列へのポインタ。 |
vtbl 72 HRESULT GetPaletteEntries(DWORD PaletteNumber, PALETTEENTRY* pEntries)
| PaletteNumber | DWORD | in | 取得するパレットの番号(0始まり)。 |
| pEntries | PALETTEENTRY* | inout | 256要素のパレットを受け取るPALETTEENTRY配列へのポインタ。 |
| PaletteNumber | DWORD | in | 現在使用するテクスチャパレットの番号(0始まり)。 |
| PaletteNumber | DWORD* | inout | 現在のテクスチャパレット番号を受け取るDWORDポインタ。 |
| pRect | RECT* | in | 設定するシザー矩形を示すRECTへのポインタ。 |
| pRect | RECT* | inout | 現在のシザー矩形を受け取るRECTへのポインタ。 |
| bSoftware | BOOL | in | ソフトウェア頂点処理を使うか。TRUEでソフトウェア処理。 |
vtbl 78 BOOL GetSoftwareVertexProcessing()
| nSegments | FLOAT | in | Nパッチの細分割セグメント数。1.0未満で無効化する。 |
vtbl 80 FLOAT GetNPatchMode()
vtbl 81 HRESULT DrawPrimitive(D3DPRIMITIVETYPE PrimitiveType, DWORD StartVertex, DWORD PrimitiveCount)
| PrimitiveType | D3DPRIMITIVETYPE | in | 描画するプリミティブの種別を示すD3DPRIMITIVETYPE。 |
| StartVertex | DWORD | in | 描画を開始する頂点バッファ内の頂点インデックス。 |
| PrimitiveCount | DWORD | in | 描画するプリミティブの個数。 |
vtbl 82 HRESULT DrawIndexedPrimitive(D3DPRIMITIVETYPE param0, INT BaseVertexIndex, DWORD MinVertexIndex, DWORD NumVertices, DWORD startIndex, DWORD primCount)
| param0 | D3DPRIMITIVETYPE | in | 描画するプリミティブの種別を示すD3DPRIMITIVETYPE。 |
| BaseVertexIndex | INT | in | インデックスに加算する頂点バッファのベースオフセット。 |
| MinVertexIndex | DWORD | in | 参照される最小の相対頂点インデックス。 |
| NumVertices | DWORD | in | 描画で使用する頂点の総数。 |
| startIndex | DWORD | in | 描画を開始するインデックスバッファ内の位置。 |
| primCount | DWORD | in | 描画するプリミティブの個数。 |
vtbl 83 HRESULT DrawPrimitiveUP(D3DPRIMITIVETYPE PrimitiveType, DWORD PrimitiveCount, void* pVertexStreamZeroData, DWORD VertexStreamZeroStride)
| PrimitiveType | D3DPRIMITIVETYPE | in | 描画するプリミティブの種別を示すD3DPRIMITIVETYPE。 |
| PrimitiveCount | DWORD | in | 描画するプリミティブの個数。 |
| pVertexStreamZeroData | void* | in | ユーザーメモリ上の頂点データへのポインタ。 |
| VertexStreamZeroStride | DWORD | in | 1頂点あたりのバイト数(ストライド)。 |
vtbl 84 HRESULT DrawIndexedPrimitiveUP(D3DPRIMITIVETYPE PrimitiveType, DWORD MinVertexIndex, DWORD NumVertices, DWORD PrimitiveCount, void* pIndexData, D3DFORMAT IndexDataFormat, void* pVertexStreamZeroData, DWORD VertexStreamZeroStride)
| PrimitiveType | D3DPRIMITIVETYPE | in | 描画するプリミティブの種別を示すD3DPRIMITIVETYPE。 |
| MinVertexIndex | DWORD | in | 参照される最小の頂点インデックス。 |
| NumVertices | DWORD | in | 描画で使用する頂点の総数。 |
| PrimitiveCount | DWORD | in | 描画するプリミティブの個数。 |
| pIndexData | void* | in | ユーザーメモリ上のインデックスデータへのポインタ。 |
| IndexDataFormat | D3DFORMAT | in | インデックスのフォーマット。INDEX16またはINDEX32。 |
| pVertexStreamZeroData | void* | in | ユーザーメモリ上の頂点データへのポインタ。 |
| VertexStreamZeroStride | DWORD | in | 1頂点あたりのバイト数(ストライド)。 |
vtbl 85 HRESULT ProcessVertices(DWORD SrcStartIndex, DWORD DestIndex, DWORD VertexCount, IDirect3DVertexBuffer9* pDestBuffer, IDirect3DVertexDeclaration9* pVertexDecl, DWORD Flags)
| SrcStartIndex | DWORD | in | 処理を開始するソース頂点のインデックス。 |
| DestIndex | DWORD | in | 出力先バッファ内の書き込み開始インデックス。 |
| VertexCount | DWORD | in | 処理する頂点の個数。 |
| pDestBuffer | IDirect3DVertexBuffer9* | in | 処理結果を格納するIDirect3DVertexBuffer9へのポインタ。 |
| pVertexDecl | IDirect3DVertexDeclaration9* | in | 出力頂点の構造を示すIDirect3DVertexDeclaration9へのポインタ。 |
| Flags | DWORD | in | 頂点処理オプションを示すフラグ。D3DPV_DONOTCOPYDATAなど。 |
vtbl 86 HRESULT CreateVertexDeclaration(D3DVERTEXELEMENT9* pVertexElements, IDirect3DVertexDeclaration9** ppDecl)
| pVertexElements | D3DVERTEXELEMENT9* | in | 頂点要素定義を並べたD3DVERTEXELEMENT9配列へのポインタ。 |
| ppDecl | IDirect3DVertexDeclaration9** | out | 作成されたIDirect3DVertexDeclaration9のポインタを受け取る出力。 |
vtbl 87 HRESULT SetVertexDeclaration(IDirect3DVertexDeclaration9* pDecl)
| pDecl | IDirect3DVertexDeclaration9* | in | 設定する頂点宣言IDirect3DVertexDeclaration9へのポインタ。 |
vtbl 88 HRESULT GetVertexDeclaration(IDirect3DVertexDeclaration9** ppDecl)
| ppDecl | IDirect3DVertexDeclaration9** | out | 現在の頂点宣言のポインタを受け取る出力。 |
| FVF | DWORD | in | 設定する固定機能頂点フォーマット(FVF)コードを示すDWORD。 |
| pFVF | DWORD* | inout | 現在のFVFコードを受け取るDWORDポインタ。 |
vtbl 91 HRESULT CreateVertexShader(DWORD* pFunction, IDirect3DVertexShader9** ppShader)
| pFunction | DWORD* | in | コンパイル済み頂点シェーダトークン列へのポインタ。 |
| ppShader | IDirect3DVertexShader9** | out | 作成されたIDirect3DVertexShader9のポインタを受け取る出力。 |
vtbl 92 HRESULT SetVertexShader(IDirect3DVertexShader9* pShader)
| pShader | IDirect3DVertexShader9* | in | 設定する頂点シェーダへのポインタ。NULLで固定機能に戻す。 |
vtbl 93 HRESULT GetVertexShader(IDirect3DVertexShader9** ppShader)
| ppShader | IDirect3DVertexShader9** | out | 現在の頂点シェーダのポインタを受け取る出力。 |
vtbl 94 HRESULT SetVertexShaderConstantF(DWORD StartRegister, FLOAT* pConstantData, DWORD Vector4fCount)
| StartRegister | DWORD | in | 書き込みを開始する定数レジスタ番号。 |
| pConstantData | FLOAT* | in | 設定する浮動小数点定数データへのポインタ。 |
| Vector4fCount | DWORD | in | 設定する4成分float定数ベクタの個数。 |
vtbl 95 HRESULT GetVertexShaderConstantF(DWORD StartRegister, FLOAT* pConstantData, DWORD Vector4fCount)
| StartRegister | DWORD | in | 読み出しを開始する定数レジスタ番号。 |
| pConstantData | FLOAT* | inout | 取得した浮動小数点定数データを受け取るポインタ。 |
| Vector4fCount | DWORD | in | 取得する4成分float定数ベクタの個数。 |
vtbl 96 HRESULT SetVertexShaderConstantI(DWORD StartRegister, INT* pConstantData, DWORD Vector4iCount)
| StartRegister | DWORD | in | 書き込みを開始する整数定数レジスタ番号。 |
| pConstantData | INT* | in | 設定する整数定数データへのポインタ。 |
| Vector4iCount | DWORD | in | 設定する4成分int定数ベクタの個数。 |
vtbl 97 HRESULT GetVertexShaderConstantI(DWORD StartRegister, INT* pConstantData, DWORD Vector4iCount)
| StartRegister | DWORD | in | 読み出しを開始する整数定数レジスタ番号。 |
| pConstantData | INT* | inout | 取得した整数定数データを受け取るポインタ。 |
| Vector4iCount | DWORD | in | 取得する4成分int定数ベクタの個数。 |
| StartRegister | DWORD | in | 書き込みを開始する真偽定数レジスタ番号。 |
| pConstantData | BOOL* | in | 設定する真偽(BOOL)定数データへのポインタ。 |
| BoolCount | DWORD | in | 設定するBOOL定数の個数。 |
| StartRegister | DWORD | in | 読み出しを開始する真偽定数レジスタ番号。 |
| pConstantData | BOOL* | inout | 取得した真偽(BOOL)定数データを受け取るポインタ。 |
| BoolCount | DWORD | in | 取得するBOOL定数の個数。 |
vtbl 100 HRESULT SetStreamSource(DWORD StreamNumber, IDirect3DVertexBuffer9* pStreamData, DWORD OffsetInBytes, DWORD Stride)
| StreamNumber | DWORD | in | 設定する頂点ストリームの番号(0始まり)。 |
| pStreamData | IDirect3DVertexBuffer9* | in | バインドする頂点バッファへのポインタ。NULLで解除。 |
| OffsetInBytes | DWORD | in | 頂点バッファ内の開始オフセット(バイト)。 |
| Stride | DWORD | in | 1頂点あたりのバイト数(ストライド)。 |
vtbl 101 HRESULT GetStreamSource(DWORD StreamNumber, IDirect3DVertexBuffer9** ppStreamData, DWORD* pOffsetInBytes, DWORD* pStride)
| StreamNumber | DWORD | in | 取得する頂点ストリームの番号(0始まり)。 |
| ppStreamData | IDirect3DVertexBuffer9** | out | 現在バインドされた頂点バッファのポインタを受け取る出力。 |
| pOffsetInBytes | DWORD* | inout | 現在の開始オフセット(バイト)を受け取るDWORDポインタ。 |
| pStride | DWORD* | inout | 現在のストライド(バイト)を受け取るDWORDポインタ。 |
| StreamNumber | DWORD | in | 設定する頂点ストリームの番号(0始まり)。 |
| Setting | DWORD | in | インスタンシングの分周設定を示すDWORD。INDEXEDDATA等を含む。 |
| StreamNumber | DWORD | in | 取得する頂点ストリームの番号(0始まり)。 |
| pSetting | DWORD* | inout | 現在の分周設定値を受け取るDWORDポインタ。 |
vtbl 104 HRESULT SetIndices(IDirect3DIndexBuffer9* pIndexData)
| pIndexData | IDirect3DIndexBuffer9* | in | 設定するインデックスバッファへのポインタ。NULLで解除。 |
vtbl 105 HRESULT GetIndices(IDirect3DIndexBuffer9** ppIndexData)
| ppIndexData | IDirect3DIndexBuffer9** | out | 現在のインデックスバッファのポインタを受け取る出力。 |
vtbl 106 HRESULT CreatePixelShader(DWORD* pFunction, IDirect3DPixelShader9** ppShader)
| pFunction | DWORD* | in | コンパイル済みピクセルシェーダトークン列へのポインタ。 |
| ppShader | IDirect3DPixelShader9** | out | 作成されたIDirect3DPixelShader9のポインタを受け取る出力。 |
vtbl 107 HRESULT SetPixelShader(IDirect3DPixelShader9* pShader)
| pShader | IDirect3DPixelShader9* | in | 設定するピクセルシェーダへのポインタ。NULLで固定機能に戻す。 |
vtbl 108 HRESULT GetPixelShader(IDirect3DPixelShader9** ppShader)
| ppShader | IDirect3DPixelShader9** | out | 現在のピクセルシェーダのポインタを受け取る出力。 |
vtbl 109 HRESULT SetPixelShaderConstantF(DWORD StartRegister, FLOAT* pConstantData, DWORD Vector4fCount)
| StartRegister | DWORD | in | 書き込みを開始する定数レジスタ番号。 |
| pConstantData | FLOAT* | in | 設定する浮動小数点定数データへのポインタ。 |
| Vector4fCount | DWORD | in | 設定する4成分float定数ベクタの個数。 |
vtbl 110 HRESULT GetPixelShaderConstantF(DWORD StartRegister, FLOAT* pConstantData, DWORD Vector4fCount)
| StartRegister | DWORD | in | 読み出しを開始する定数レジスタ番号。 |
| pConstantData | FLOAT* | inout | 取得した浮動小数点定数データを受け取るポインタ。 |
| Vector4fCount | DWORD | in | 取得する4成分float定数ベクタの個数。 |
vtbl 111 HRESULT SetPixelShaderConstantI(DWORD StartRegister, INT* pConstantData, DWORD Vector4iCount)
| StartRegister | DWORD | in | 書き込みを開始する整数定数レジスタ番号。 |
| pConstantData | INT* | in | 設定する整数定数データへのポインタ。 |
| Vector4iCount | DWORD | in | 設定する4成分int定数ベクタの個数。 |
vtbl 112 HRESULT GetPixelShaderConstantI(DWORD StartRegister, INT* pConstantData, DWORD Vector4iCount)
| StartRegister | DWORD | in | 読み出しを開始する整数定数レジスタ番号。 |
| pConstantData | INT* | inout | 取得した整数定数データを受け取るポインタ。 |
| Vector4iCount | DWORD | in | 取得する4成分int定数ベクタの個数。 |
| StartRegister | DWORD | in | 書き込みを開始する真偽定数レジスタ番号。 |
| pConstantData | BOOL* | in | 設定する真偽(BOOL)定数データへのポインタ。 |
| BoolCount | DWORD | in | 設定するBOOL定数の個数。 |
| StartRegister | DWORD | in | 読み出しを開始する真偽定数レジスタ番号。 |
| pConstantData | BOOL* | inout | 取得した真偽(BOOL)定数データを受け取るポインタ。 |
| BoolCount | DWORD | in | 取得するBOOL定数の個数。 |
vtbl 115 HRESULT DrawRectPatch(DWORD Handle, FLOAT* pNumSegs, D3DRECTPATCH_INFO* pRectPatchInfo)
| Handle | DWORD | in | 矩形パッチを識別するハンドル。0でキャッシュしない。 |
| pNumSegs | FLOAT* | in | 各辺の細分割セグメント数を示すFLOAT配列(4要素)へのポインタ。 |
| pRectPatchInfo | D3DRECTPATCH_INFO* | in | 矩形パッチの構成を記述するD3DRECTPATCH_INFOへのポインタ。 |
vtbl 116 HRESULT DrawTriPatch(DWORD Handle, FLOAT* pNumSegs, D3DTRIPATCH_INFO* pTriPatchInfo)
| Handle | DWORD | in | 三角形パッチを識別するハンドル。0でキャッシュしない。 |
| pNumSegs | FLOAT* | in | 各辺の細分割セグメント数を示すFLOAT配列(3要素)へのポインタ。 |
| pTriPatchInfo | D3DTRIPATCH_INFO* | in | 三角形パッチの構成を記述するD3DTRIPATCH_INFOへのポインタ。 |
| Handle | DWORD | in | 削除するキャッシュ済みパッチを識別するハンドル。 |
vtbl 118 HRESULT CreateQuery(D3DQUERYTYPE Type, IDirect3DQuery9** ppQuery)
| Type | D3DQUERYTYPE | in | 作成するクエリの種別を示すD3DQUERYTYPE。OCCLUSIONやEVENTなど。 |
| ppQuery | IDirect3DQuery9** | out | 作成されたIDirect3DQuery9のポインタを受け取る出力。NULLで対応確認のみ。 |
HSP用 COM定義
#usecom / #comfunc によるHSPのCOM呼び出し定義。数字は vtbl インデックス(0始まり)。クラスIDが無い場合 #usecom の末尾は "{}"、ある場合は "{CLSID}"。
出力引数:
#define global IID_IDirect3DDevice9 "{D0223B96-BF7A-43FD-92BD-A43B0D82B9EB}" #usecom global IDirect3DDevice9 IID_IDirect3DDevice9 "{}" #comfunc global IDirect3DDevice9_TestCooperativeLevel 3 #comfunc global IDirect3DDevice9_GetAvailableTextureMem 4 #comfunc global IDirect3DDevice9_EvictManagedResources 5 #comfunc global IDirect3DDevice9_GetDirect3D 6 sptr #comfunc global IDirect3DDevice9_GetDeviceCaps 7 var #comfunc global IDirect3DDevice9_GetDisplayMode 8 int,var #comfunc global IDirect3DDevice9_GetCreationParameters 9 var #comfunc global IDirect3DDevice9_SetCursorProperties 10 int,int,sptr #comfunc global IDirect3DDevice9_SetCursorPosition 11 int,int,int #comfunc global IDirect3DDevice9_ShowCursor 12 int #comfunc global IDirect3DDevice9_CreateAdditionalSwapChain 13 var,sptr #comfunc global IDirect3DDevice9_GetSwapChain 14 int,sptr #comfunc global IDirect3DDevice9_GetNumberOfSwapChains 15 #comfunc global IDirect3DDevice9_Reset 16 var #comfunc global IDirect3DDevice9_Present 17 var,var,sptr,var #comfunc global IDirect3DDevice9_GetBackBuffer 18 int,int,int,sptr #comfunc global IDirect3DDevice9_GetRasterStatus 19 int,var #comfunc global IDirect3DDevice9_SetDialogBoxMode 20 int #comfunc global IDirect3DDevice9_SetGammaRamp 21 int,int,var #comfunc global IDirect3DDevice9_GetGammaRamp 22 int,var #comfunc global IDirect3DDevice9_CreateTexture 23 int,int,int,int,int,int,sptr,sptr #comfunc global IDirect3DDevice9_CreateVolumeTexture 24 int,int,int,int,int,int,int,sptr,sptr #comfunc global IDirect3DDevice9_CreateCubeTexture 25 int,int,int,int,int,sptr,sptr #comfunc global IDirect3DDevice9_CreateVertexBuffer 26 int,int,int,int,sptr,sptr #comfunc global IDirect3DDevice9_CreateIndexBuffer 27 int,int,int,int,sptr,sptr #comfunc global IDirect3DDevice9_CreateRenderTarget 28 int,int,int,int,int,int,sptr,sptr #comfunc global IDirect3DDevice9_CreateDepthStencilSurface 29 int,int,int,int,int,int,sptr,sptr #comfunc global IDirect3DDevice9_UpdateSurface 30 sptr,var,sptr,var #comfunc global IDirect3DDevice9_UpdateTexture 31 sptr,sptr #comfunc global IDirect3DDevice9_GetRenderTargetData 32 sptr,sptr #comfunc global IDirect3DDevice9_GetFrontBufferData 33 int,sptr #comfunc global IDirect3DDevice9_StretchRect 34 sptr,var,sptr,var,int #comfunc global IDirect3DDevice9_ColorFill 35 sptr,var,int #comfunc global IDirect3DDevice9_CreateOffscreenPlainSurface 36 int,int,int,int,sptr,sptr #comfunc global IDirect3DDevice9_SetRenderTarget 37 int,sptr #comfunc global IDirect3DDevice9_GetRenderTarget 38 int,sptr #comfunc global IDirect3DDevice9_SetDepthStencilSurface 39 sptr #comfunc global IDirect3DDevice9_GetDepthStencilSurface 40 sptr #comfunc global IDirect3DDevice9_BeginScene 41 #comfunc global IDirect3DDevice9_EndScene 42 #comfunc global IDirect3DDevice9_Clear 43 int,var,int,int,float,int #comfunc global IDirect3DDevice9_SetTransform 44 int,var #comfunc global IDirect3DDevice9_GetTransform 45 int,var #comfunc global IDirect3DDevice9_MultiplyTransform 46 int,var #comfunc global IDirect3DDevice9_SetViewport 47 var #comfunc global IDirect3DDevice9_GetViewport 48 var #comfunc global IDirect3DDevice9_SetMaterial 49 var #comfunc global IDirect3DDevice9_GetMaterial 50 var #comfunc global IDirect3DDevice9_SetLight 51 int,var #comfunc global IDirect3DDevice9_GetLight 52 int,var #comfunc global IDirect3DDevice9_LightEnable 53 int,int #comfunc global IDirect3DDevice9_GetLightEnable 54 int,var #comfunc global IDirect3DDevice9_SetClipPlane 55 int,var #comfunc global IDirect3DDevice9_GetClipPlane 56 int,var #comfunc global IDirect3DDevice9_SetRenderState 57 int,int #comfunc global IDirect3DDevice9_GetRenderState 58 int,var #comfunc global IDirect3DDevice9_CreateStateBlock 59 int,sptr #comfunc global IDirect3DDevice9_BeginStateBlock 60 #comfunc global IDirect3DDevice9_EndStateBlock 61 sptr #comfunc global IDirect3DDevice9_SetClipStatus 62 var #comfunc global IDirect3DDevice9_GetClipStatus 63 var #comfunc global IDirect3DDevice9_GetTexture 64 int,sptr #comfunc global IDirect3DDevice9_SetTexture 65 int,sptr #comfunc global IDirect3DDevice9_GetTextureStageState 66 int,int,var #comfunc global IDirect3DDevice9_SetTextureStageState 67 int,int,int #comfunc global IDirect3DDevice9_GetSamplerState 68 int,int,var #comfunc global IDirect3DDevice9_SetSamplerState 69 int,int,int #comfunc global IDirect3DDevice9_ValidateDevice 70 var #comfunc global IDirect3DDevice9_SetPaletteEntries 71 int,var #comfunc global IDirect3DDevice9_GetPaletteEntries 72 int,var #comfunc global IDirect3DDevice9_SetCurrentTexturePalette 73 int #comfunc global IDirect3DDevice9_GetCurrentTexturePalette 74 var #comfunc global IDirect3DDevice9_SetScissorRect 75 var #comfunc global IDirect3DDevice9_GetScissorRect 76 var #comfunc global IDirect3DDevice9_SetSoftwareVertexProcessing 77 int #comfunc global IDirect3DDevice9_GetSoftwareVertexProcessing 78 #comfunc global IDirect3DDevice9_SetNPatchMode 79 float #comfunc global IDirect3DDevice9_GetNPatchMode 80 #comfunc global IDirect3DDevice9_DrawPrimitive 81 int,int,int #comfunc global IDirect3DDevice9_DrawIndexedPrimitive 82 int,int,int,int,int,int #comfunc global IDirect3DDevice9_DrawPrimitiveUP 83 int,int,sptr,int #comfunc global IDirect3DDevice9_DrawIndexedPrimitiveUP 84 int,int,int,int,sptr,int,sptr,int #comfunc global IDirect3DDevice9_ProcessVertices 85 int,int,int,sptr,sptr,int #comfunc global IDirect3DDevice9_CreateVertexDeclaration 86 var,sptr #comfunc global IDirect3DDevice9_SetVertexDeclaration 87 sptr #comfunc global IDirect3DDevice9_GetVertexDeclaration 88 sptr #comfunc global IDirect3DDevice9_SetFVF 89 int #comfunc global IDirect3DDevice9_GetFVF 90 var #comfunc global IDirect3DDevice9_CreateVertexShader 91 var,sptr #comfunc global IDirect3DDevice9_SetVertexShader 92 sptr #comfunc global IDirect3DDevice9_GetVertexShader 93 sptr #comfunc global IDirect3DDevice9_SetVertexShaderConstantF 94 int,var,int #comfunc global IDirect3DDevice9_GetVertexShaderConstantF 95 int,var,int #comfunc global IDirect3DDevice9_SetVertexShaderConstantI 96 int,var,int #comfunc global IDirect3DDevice9_GetVertexShaderConstantI 97 int,var,int #comfunc global IDirect3DDevice9_SetVertexShaderConstantB 98 int,var,int #comfunc global IDirect3DDevice9_GetVertexShaderConstantB 99 int,var,int #comfunc global IDirect3DDevice9_SetStreamSource 100 int,sptr,int,int #comfunc global IDirect3DDevice9_GetStreamSource 101 int,sptr,var,var #comfunc global IDirect3DDevice9_SetStreamSourceFreq 102 int,int #comfunc global IDirect3DDevice9_GetStreamSourceFreq 103 int,var #comfunc global IDirect3DDevice9_SetIndices 104 sptr #comfunc global IDirect3DDevice9_GetIndices 105 sptr #comfunc global IDirect3DDevice9_CreatePixelShader 106 var,sptr #comfunc global IDirect3DDevice9_SetPixelShader 107 sptr #comfunc global IDirect3DDevice9_GetPixelShader 108 sptr #comfunc global IDirect3DDevice9_SetPixelShaderConstantF 109 int,var,int #comfunc global IDirect3DDevice9_GetPixelShaderConstantF 110 int,var,int #comfunc global IDirect3DDevice9_SetPixelShaderConstantI 111 int,var,int #comfunc global IDirect3DDevice9_GetPixelShaderConstantI 112 int,var,int #comfunc global IDirect3DDevice9_SetPixelShaderConstantB 113 int,var,int #comfunc global IDirect3DDevice9_GetPixelShaderConstantB 114 int,var,int #comfunc global IDirect3DDevice9_DrawRectPatch 115 int,var,var #comfunc global IDirect3DDevice9_DrawTriPatch 116 int,var,var #comfunc global IDirect3DDevice9_DeletePatch 117 int #comfunc global IDirect3DDevice9_CreateQuery 118 int,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数は var(変数直渡し)。varptr 方式にも切替可。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。#define global IID_IDirect3DDevice9 "{D0223B96-BF7A-43FD-92BD-A43B0D82B9EB}" #usecom global IDirect3DDevice9 IID_IDirect3DDevice9 "{}" #comfunc global IDirect3DDevice9_TestCooperativeLevel 3 #comfunc global IDirect3DDevice9_GetAvailableTextureMem 4 #comfunc global IDirect3DDevice9_EvictManagedResources 5 #comfunc global IDirect3DDevice9_GetDirect3D 6 sptr #comfunc global IDirect3DDevice9_GetDeviceCaps 7 sptr #comfunc global IDirect3DDevice9_GetDisplayMode 8 int,sptr #comfunc global IDirect3DDevice9_GetCreationParameters 9 sptr #comfunc global IDirect3DDevice9_SetCursorProperties 10 int,int,sptr #comfunc global IDirect3DDevice9_SetCursorPosition 11 int,int,int #comfunc global IDirect3DDevice9_ShowCursor 12 int #comfunc global IDirect3DDevice9_CreateAdditionalSwapChain 13 sptr,sptr #comfunc global IDirect3DDevice9_GetSwapChain 14 int,sptr #comfunc global IDirect3DDevice9_GetNumberOfSwapChains 15 #comfunc global IDirect3DDevice9_Reset 16 sptr #comfunc global IDirect3DDevice9_Present 17 sptr,sptr,sptr,sptr #comfunc global IDirect3DDevice9_GetBackBuffer 18 int,int,int,sptr #comfunc global IDirect3DDevice9_GetRasterStatus 19 int,sptr #comfunc global IDirect3DDevice9_SetDialogBoxMode 20 int #comfunc global IDirect3DDevice9_SetGammaRamp 21 int,int,sptr #comfunc global IDirect3DDevice9_GetGammaRamp 22 int,sptr #comfunc global IDirect3DDevice9_CreateTexture 23 int,int,int,int,int,int,sptr,sptr #comfunc global IDirect3DDevice9_CreateVolumeTexture 24 int,int,int,int,int,int,int,sptr,sptr #comfunc global IDirect3DDevice9_CreateCubeTexture 25 int,int,int,int,int,sptr,sptr #comfunc global IDirect3DDevice9_CreateVertexBuffer 26 int,int,int,int,sptr,sptr #comfunc global IDirect3DDevice9_CreateIndexBuffer 27 int,int,int,int,sptr,sptr #comfunc global IDirect3DDevice9_CreateRenderTarget 28 int,int,int,int,int,int,sptr,sptr #comfunc global IDirect3DDevice9_CreateDepthStencilSurface 29 int,int,int,int,int,int,sptr,sptr #comfunc global IDirect3DDevice9_UpdateSurface 30 sptr,sptr,sptr,sptr #comfunc global IDirect3DDevice9_UpdateTexture 31 sptr,sptr #comfunc global IDirect3DDevice9_GetRenderTargetData 32 sptr,sptr #comfunc global IDirect3DDevice9_GetFrontBufferData 33 int,sptr #comfunc global IDirect3DDevice9_StretchRect 34 sptr,sptr,sptr,sptr,int #comfunc global IDirect3DDevice9_ColorFill 35 sptr,sptr,int #comfunc global IDirect3DDevice9_CreateOffscreenPlainSurface 36 int,int,int,int,sptr,sptr #comfunc global IDirect3DDevice9_SetRenderTarget 37 int,sptr #comfunc global IDirect3DDevice9_GetRenderTarget 38 int,sptr #comfunc global IDirect3DDevice9_SetDepthStencilSurface 39 sptr #comfunc global IDirect3DDevice9_GetDepthStencilSurface 40 sptr #comfunc global IDirect3DDevice9_BeginScene 41 #comfunc global IDirect3DDevice9_EndScene 42 #comfunc global IDirect3DDevice9_Clear 43 int,sptr,int,int,float,int #comfunc global IDirect3DDevice9_SetTransform 44 int,sptr #comfunc global IDirect3DDevice9_GetTransform 45 int,sptr #comfunc global IDirect3DDevice9_MultiplyTransform 46 int,sptr #comfunc global IDirect3DDevice9_SetViewport 47 sptr #comfunc global IDirect3DDevice9_GetViewport 48 sptr #comfunc global IDirect3DDevice9_SetMaterial 49 sptr #comfunc global IDirect3DDevice9_GetMaterial 50 sptr #comfunc global IDirect3DDevice9_SetLight 51 int,sptr #comfunc global IDirect3DDevice9_GetLight 52 int,sptr #comfunc global IDirect3DDevice9_LightEnable 53 int,int #comfunc global IDirect3DDevice9_GetLightEnable 54 int,sptr #comfunc global IDirect3DDevice9_SetClipPlane 55 int,sptr #comfunc global IDirect3DDevice9_GetClipPlane 56 int,sptr #comfunc global IDirect3DDevice9_SetRenderState 57 int,int #comfunc global IDirect3DDevice9_GetRenderState 58 int,sptr #comfunc global IDirect3DDevice9_CreateStateBlock 59 int,sptr #comfunc global IDirect3DDevice9_BeginStateBlock 60 #comfunc global IDirect3DDevice9_EndStateBlock 61 sptr #comfunc global IDirect3DDevice9_SetClipStatus 62 sptr #comfunc global IDirect3DDevice9_GetClipStatus 63 sptr #comfunc global IDirect3DDevice9_GetTexture 64 int,sptr #comfunc global IDirect3DDevice9_SetTexture 65 int,sptr #comfunc global IDirect3DDevice9_GetTextureStageState 66 int,int,sptr #comfunc global IDirect3DDevice9_SetTextureStageState 67 int,int,int #comfunc global IDirect3DDevice9_GetSamplerState 68 int,int,sptr #comfunc global IDirect3DDevice9_SetSamplerState 69 int,int,int #comfunc global IDirect3DDevice9_ValidateDevice 70 sptr #comfunc global IDirect3DDevice9_SetPaletteEntries 71 int,sptr #comfunc global IDirect3DDevice9_GetPaletteEntries 72 int,sptr #comfunc global IDirect3DDevice9_SetCurrentTexturePalette 73 int #comfunc global IDirect3DDevice9_GetCurrentTexturePalette 74 sptr #comfunc global IDirect3DDevice9_SetScissorRect 75 sptr #comfunc global IDirect3DDevice9_GetScissorRect 76 sptr #comfunc global IDirect3DDevice9_SetSoftwareVertexProcessing 77 int #comfunc global IDirect3DDevice9_GetSoftwareVertexProcessing 78 #comfunc global IDirect3DDevice9_SetNPatchMode 79 float #comfunc global IDirect3DDevice9_GetNPatchMode 80 #comfunc global IDirect3DDevice9_DrawPrimitive 81 int,int,int #comfunc global IDirect3DDevice9_DrawIndexedPrimitive 82 int,int,int,int,int,int #comfunc global IDirect3DDevice9_DrawPrimitiveUP 83 int,int,sptr,int #comfunc global IDirect3DDevice9_DrawIndexedPrimitiveUP 84 int,int,int,int,sptr,int,sptr,int #comfunc global IDirect3DDevice9_ProcessVertices 85 int,int,int,sptr,sptr,int #comfunc global IDirect3DDevice9_CreateVertexDeclaration 86 sptr,sptr #comfunc global IDirect3DDevice9_SetVertexDeclaration 87 sptr #comfunc global IDirect3DDevice9_GetVertexDeclaration 88 sptr #comfunc global IDirect3DDevice9_SetFVF 89 int #comfunc global IDirect3DDevice9_GetFVF 90 sptr #comfunc global IDirect3DDevice9_CreateVertexShader 91 sptr,sptr #comfunc global IDirect3DDevice9_SetVertexShader 92 sptr #comfunc global IDirect3DDevice9_GetVertexShader 93 sptr #comfunc global IDirect3DDevice9_SetVertexShaderConstantF 94 int,sptr,int #comfunc global IDirect3DDevice9_GetVertexShaderConstantF 95 int,sptr,int #comfunc global IDirect3DDevice9_SetVertexShaderConstantI 96 int,sptr,int #comfunc global IDirect3DDevice9_GetVertexShaderConstantI 97 int,sptr,int #comfunc global IDirect3DDevice9_SetVertexShaderConstantB 98 int,sptr,int #comfunc global IDirect3DDevice9_GetVertexShaderConstantB 99 int,sptr,int #comfunc global IDirect3DDevice9_SetStreamSource 100 int,sptr,int,int #comfunc global IDirect3DDevice9_GetStreamSource 101 int,sptr,sptr,sptr #comfunc global IDirect3DDevice9_SetStreamSourceFreq 102 int,int #comfunc global IDirect3DDevice9_GetStreamSourceFreq 103 int,sptr #comfunc global IDirect3DDevice9_SetIndices 104 sptr #comfunc global IDirect3DDevice9_GetIndices 105 sptr #comfunc global IDirect3DDevice9_CreatePixelShader 106 sptr,sptr #comfunc global IDirect3DDevice9_SetPixelShader 107 sptr #comfunc global IDirect3DDevice9_GetPixelShader 108 sptr #comfunc global IDirect3DDevice9_SetPixelShaderConstantF 109 int,sptr,int #comfunc global IDirect3DDevice9_GetPixelShaderConstantF 110 int,sptr,int #comfunc global IDirect3DDevice9_SetPixelShaderConstantI 111 int,sptr,int #comfunc global IDirect3DDevice9_GetPixelShaderConstantI 112 int,sptr,int #comfunc global IDirect3DDevice9_SetPixelShaderConstantB 113 int,sptr,int #comfunc global IDirect3DDevice9_GetPixelShaderConstantB 114 int,sptr,int #comfunc global IDirect3DDevice9_DrawRectPatch 115 int,sptr,sptr #comfunc global IDirect3DDevice9_DrawTriPatch 116 int,sptr,sptr #comfunc global IDirect3DDevice9_DeletePatch 117 int #comfunc global IDirect3DDevice9_CreateQuery 118 int,sptr ; ※数字は vtbl インデックス(0始まり)。0/1/2 は IUnknown(QueryInterface/AddRef/Release)。 ; ※このインターフェースは直接 CoCreateInstance するクラスIDが無いため "{}"(他メソッド/アクティベーションで取得)。 ; ※出力/バッファ引数はポインタ方式(token=sptr / 呼び出しは varptr(変数))。 ; ※ハンドル/void*等の不透明ポインタは IronHSP では intptr 指定が可能。