Microsoft DirectX 8.0 (C++)

IDirect3DDevice8

Applications use the methods of the IDirect3DDevice8 interface to perform DrawPrimitive-based rendering, create resources, work with system-level variables, adjust gamma ramp levels, work with palettes, and create shaders.

The IDirect3DDevice8 interface is obtained by calling the IDirect3D8::CreateDevice method.

The methods of the IDirect3DDevice8 interface can be organized into the following groups.

Cursors SetCursorPosition
  SetCursorProperties
  ShowCursor
Creation CreateAdditionalSwapChain
  CreateCubeTexture
  CreateDepthStencilSurface
  CreateImageSurface
  CreateIndexBuffer
  CreateRenderTarget
  CreateTexture
  CreateVertexBuffer
  CreateVolumeTexture
Device States ApplyStateBlock
  BeginStateBlock
  CaptureStateBlock
  CreateStateBlock
  DeleteStateBlock
  EndStateBlock
  GetClipStatus
  GetDisplayMode
  GetRenderState
  GetRenderTarget
  GetTransform
  SetClipStatus
  SetRenderState
  SetRenderTarget
  SetTransform
Gamma Ramps GetGammaRamp
  SetGammaRamp
High-Order Primitives DeletePatch
  DrawRectPatch
  DrawTriPatch
Index Data GetIndices
  SetIndices
Information GetAvailableTextureMem
  GetCreationParameters
  GetDeviceCaps
  GetDirect3D
  GetInfo
  GetRasterStatus
Lighting and Materials GetLight
  GetLightEnable
  GetMaterial
  LightEnable
  SetLight
  SetMaterial
Miscellaneous CopyRects
  GetFrontBuffer
  MultiplyTransform
  ProcessVertices
  ResourceManagerDiscardBytes
  TestCooperativeLevel
Palettes GetCurrentTexturePalette
  GetPaletteEntries
  SetCurrentTexturePalette
  SetPaletteEntries
Pixel Shaders CreatePixelShader
  DeletePixelShader
  GetPixelShader
  GetPixelShaderConstant
  GetPixelShaderFunction
  SetPixelShader
  SetPixelShaderConstant
Presentation Present
  Reset
Rendering DrawIndexedPrimitive
  DrawIndexedPrimitiveUP
  DrawPrimitive
  DrawPrimitiveUP
  DrawRectPatch
  DrawTriPatch
Scenes BeginScene
  EndScene
Stream Data GetStreamSource
  SetStreamSource
Surfaces GetBackBuffer
  GetDepthStencilSurface
Textures GetTexture
  GetTextureStageState
  SetTexture
  SetTextureStageState
  UpdateTexture
  ValidateDevice
User-Defined Clip Planes GetClipPlane
  SetClipPlane
Viewports Clear
  GetViewport
  SetViewport
Vertex Shaders CreateVertexShader
  DeleteVertexShader
  GetVertexShader
  GetVertexShaderConstant
  GetVertexShaderDeclaration
  GetVertexShaderFunction
  SetVertexShader
  SetVertexShaderConstant

The IDirect3DDevice8 interface, like all COM interfaces, inherits the IUnknown interface methods. The IUnknown interface supports the following three methods.

IUnknown AddRef
  QueryInterface
  Release

The LPDIRECT3DDEVICE8 and PDIRECT3DDEVICE8 types are defined as pointers to the IDirect3DDevice8 interface.

typedef struct IDirect3DDevice8 *LPDIRECT3DDEVICE8, *PDIRECT3DDEVICE8;

Requirements

  Header: Declared in D3d8.h.
  Import Library: Use D3d8.lib.

See Also

IDirect3D8::CreateDevice