Share via


IDirect3DDevice8

This interface is used by applications to perform DrawPrimitive-based rendering, create resources, work with system-level variables, adjust gamma ramp levels, and work with palettes.

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
  CreateDepthStencilSurface
  CreateImageSurface
  CreateIndexBuffer
  CreateRenderTarget
  CreateTexture
  CreateVertexBuffer
Device States ApplyStateBlock
  BeginStateBlock
  CaptureStateBlock
  CreateStateBlock
  DeleteStateBlock
  EndStateBlock
  GetClipStatus
  GetDisplayMode
  GetRenderState
  GetRenderTarget
  GetTransform
  SetClipStatus
  SetRenderState
  SetRenderTarget
  SetTransform
Gamma Ramps GetGammaRamp
  SetGammaRamp
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
Presentation Present
  Reset
Rendering DrawIndexedPrimitive
  DrawIndexedPrimitiveUP
  DrawPrimitive
  DrawPrimitiveUP
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
  GetVertexShader
  SetVertexShader

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

OS Versions: Windows CE .NET 4.0 and later.
Header: D3d8.h.
Link Library: D3d8.lib.

See Also

IUnknown | IDirect3D8::CreateDevice | Direct3D Interfaces

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.