Microsoft DirectX 8.0 (C++)

IDirect3DDevice8

DrawPrimitive ベースのレンダリング、リソースの作成、システムレベル変数の処理、ガンマ ランプ レベルの調整、パレットの処理、およびシェーダの作成を行うには、IDirect3DDevice8 インターフェイスのメソッドを使用する。

IDirect3DDevice8 インターフェイスを取得するには、IDirect3D8::CreateDevice メソッドを呼び出す。

IDirect3DDevice8 インターフェイスのメソッドは、以下のグループにまとめることができる。

カーソル SetCursorPosition
  SetCursorProperties
ShowCursor
作成 CreateAdditionalSwapChain
  CreateCubeTexture
CreateDepthStencilSurface
CreateImageSurface
CreateIndexBuffer
CreateRenderTarget
CreateTexture
CreateVertexBuffer
CreateVolumeTexture
デバイス ステート ApplyStateBlock
  BeginStateBlock
CaptureStateBlock
CreateStateBlock
DeleteStateBlock
EndStateBlock
GetClipStatus
GetDisplayMode
GetRenderState
GetRenderTarget
GetTransform
SetClipStatus
SetRenderState
SetRenderTarget
SetTransform
ガンマ ランプ GetGammaRamp
  SetGammaRamp
高次プリミティブ DeletePatch
  DrawRectPatch
DrawTriPatch
インデックス データ GetIndices
  SetIndices
情報 GetAvailableTextureMem
  GetCreationParameters
GetDeviceCaps
GetDirect3D
GetInfo
GetRasterStatus
ライティングとマテリアル GetLight
  GetLightEnable
GetMaterial
LightEnable
SetLight
SetMaterial
その他 CopyRects
  GetFrontBuffer
MultiplyTransform
ProcessVertices
ResourceManagerDiscardBytes
TestCooperativeLevel
パレット GetCurrentTexturePalette
  GetPaletteEntries
SetCurrentTexturePalette
SetPaletteEntries
ピクセル シェーダ CreatePixelShader
  DeletePixelShader
GetPixelShader
GetPixelShaderConstant
GetPixelShaderFunction
SetPixelShader
SetPixelShaderConstant
プレゼンテーション Present
  Reset
レンダリング DrawIndexedPrimitive
  DrawIndexedPrimitiveUP
DrawPrimitive
DrawPrimitiveUP
DrawRectPatch
DrawTriPatch
シーン BeginScene
  EndScene
ストリーム データ GetStreamSource
  SetStreamSource
サーフェス GetBackBuffer
  GetDepthStencilSurface
テクスチャ GetTexture
  GetTextureStageState
SetTexture
SetTextureStageState
UpdateTexture
ValidateDevice
ユーザー定義クリップ面 GetClipPlane
  SetClipPlane
ビューポート Clear
  GetViewport
SetViewport
頂点シェーダ CreateVertexShader
  DeleteVertexShader
GetVertexShader
GetVertexShaderConstant
GetVertexShaderDeclaration
GetVertexShaderFunction
SetVertexShader
SetVertexShaderConstant

すべての COM インターフェイスと同様、IDirect3DDevice8 インターフェイスは IUnknown インターフェイス メソッドを継承する。IUnknown インターフェイスは、次の 3 つのメソッドをサポートする。

IUnknown AddRef
  QueryInterface
Release

LPDIRECT3DDEVICE8 および PDIRECT3DDEVICE8 型は、IDirect3DDevice8 インターフェイスへのポインタとして定義される。

typedef struct IDirect3DDevice8 *LPDIRECT3DDEVICE8, *PDIRECT3DDEVICE8;

動作環境

  ヘッダー : d3d8.h で宣言。
  インポート ライブラリ : D3d8.lib を使用。

参照

IDirect3D8::CreateDevice