Direct3D 9 Graphics

Overview of the Direct3D 9 Graphics technology.

To develop Direct3D 9 Graphics, you need these headers:

For programming guidance for this technology, see:

Functions

Title Description
AddDirtyBox Adds a dirty region to a volume texture resource.
AddDirtyBox Adds a dirty region to a volume texture resource.
AddDirtyRect Adds a dirty region to a cube texture resource.
AddDirtyRect Adds a dirty region to a texture resource.
AddDirtyRect Adds a dirty region to a cube texture resource.
AddDirtyRect Adds a dirty region to a texture resource.
Apply Apply the state block to the current device state.
Apply Apply the state block to the current device state.
BeginScene Begins a scene.
BeginScene Begins a scene.
BeginStateBlock Signals Direct3D to begin recording a device-state block.
BeginStateBlock Signals Direct3D to begin recording a device-state block.
Capture Capture the current value of states that are included in a stateblock.
Capture Capture the current value of states that are included in a stateblock.
CheckDepthStencilMatch Determines whether a depth-stencil format is compatible with a render-target format in a particular display mode.
CheckDepthStencilMatch Determines whether a depth-stencil format is compatible with a render-target format in a particular display mode.
CheckDeviceFormat Determines whether a surface format is available as a specified resource type and can be used as a texture, depth-stencil buffer, or render target, or any combination of the three, on a device representing this adapter.
CheckDeviceFormat Determines whether a surface format is available as a specified resource type and can be used as a texture, depth-stencil buffer, or render target, or any combination of the three, on a device representing this adapter.
CheckDeviceFormatConversion Tests the device to see if it supports conversion from one display format to another.
CheckDeviceFormatConversion Tests the device to see if it supports conversion from one display format to another.
CheckDeviceMultiSampleType Determines if a multisampling technique is available on this device.
CheckDeviceMultiSampleType Determines if a multisampling technique is available on this device.
CheckDeviceState Reports the current cooperative-level status of the Direct3D device for a windowed or full-screen application.
CheckDeviceType Verifies whether a hardware accelerated device type can be used on this adapter.
CheckDeviceType Verifies whether a hardware accelerated device type can be used on this adapter.
CheckResourceResidency Checks an array of resources to determine if it is likely that they will cause a large stall at Draw time because the system must make the resources GPU-accessible.
Clear Clears one or more surfaces such as a render target, multiple render targets, a stencil buffer, and a depth buffer.
Clear Clears one or more surfaces such as a render target, multiple render targets, a stencil buffer, and a depth buffer.
ColorFill Allows an application to fill a rectangular area of a D3DPOOL_DEFAULT surface with a specified color.
ColorFill Allows an application to fill a rectangular area of a D3DPOOL_DEFAULT surface with a specified color.
ComposeRects Copy a text string to one surface using an alphabet of glyphs on another surface. Composition is done by the GPU using bitwise operations.
CreateAdditionalSwapChain Creates an additional swap chain for rendering multiple views.
CreateAdditionalSwapChain Creates an additional swap chain for rendering multiple views.
CreateCubeTexture Creates a cube texture resource.
CreateCubeTexture Creates a cube texture resource.
CreateDepthStencilSurface Creates a depth-stencil resource.
CreateDepthStencilSurface Creates a depth-stencil resource.
CreateDepthStencilSurfaceEx Creates a depth-stencil surface.
CreateDevice Creates a device to represent the display adapter.
CreateDevice Creates a device to represent the display adapter.
CreateDeviceEx Creates a device to represent the display adapter.
CreateIndexBuffer Creates an index buffer.
CreateIndexBuffer Creates an index buffer.
CreateOffscreenPlainSurface Create an off-screen surface.
CreateOffscreenPlainSurface Create an off-screen surface.
CreateOffscreenPlainSurfaceEx Create an off-screen surface.
CreatePixelShader Creates a pixel shader.
CreatePixelShader Creates a pixel shader.
CreateQuery Creates a status query.
CreateQuery Creates a status query.
CreateRenderTarget Creates a render-target surface.
CreateRenderTarget Creates a render-target surface.
CreateRenderTargetEx Creates a render-target surface.
CreateStateBlock Creates a new state block that contains the values for all device states, vertex-related states, or pixel-related states.
CreateStateBlock Creates a new state block that contains the values for all device states, vertex-related states, or pixel-related states.
CreateTexture Creates a texture resource.
CreateTexture Creates a texture resource.
CreateVertexBuffer Creates a vertex buffer.
CreateVertexBuffer Creates a vertex buffer.
CreateVertexDeclaration Create a vertex shader declaration from the device and the vertex elements.
CreateVertexDeclaration Create a vertex shader declaration from the device and the vertex elements.
CreateVertexShader Creates a vertex shader.
CreateVertexShader Creates a vertex shader.
CreateVolumeTexture Creates a volume texture resource.
CreateVolumeTexture Creates a volume texture resource.
DeletePatch Frees a cached high-order patch.
DeletePatch Frees a cached high-order patch.
Direct3DCreate9 Create an IDirect3D9 object and return an interface to it.
Direct3DCreate9 Create an IDirect3D9 object and return an interface to it.
Direct3DCreate9Ex Creates an IDirect3D9Ex object and returns an interface to it.
DrawIndexedPrimitive Based on indexing, renders the specified geometric primitive into an array of vertices.
DrawIndexedPrimitive Based on indexing, renders the specified geometric primitive into an array of vertices.
DrawIndexedPrimitiveUP Renders the specified geometric primitive with data specified by a user memory pointer.
DrawIndexedPrimitiveUP Renders the specified geometric primitive with data specified by a user memory pointer.
DrawPrimitive Renders a sequence of nonindexed, geometric primitives of the specified type from the current set of data input streams.
DrawPrimitive Renders a sequence of nonindexed, geometric primitives of the specified type from the current set of data input streams.
DrawPrimitiveUP Renders data specified by a user memory pointer as a sequence of geometric primitives of the specified type.
DrawPrimitiveUP Renders data specified by a user memory pointer as a sequence of geometric primitives of the specified type.
DrawRectPatch Draws a rectangular patch using the currently set streams.
DrawRectPatch Draws a rectangular patch using the currently set streams.
DrawTriPatch Draws a triangular patch using the currently set streams.
DrawTriPatch Draws a triangular patch using the currently set streams.
EndScene Ends a scene that was begun by calling IDirect3DDevice9::BeginScene.
EndScene Ends a scene that was begun by calling IDirect3DDevice9::BeginScene.
EndStateBlock Signals Direct3D to stop recording a device-state block and retrieve a pointer to the state block interface.
EndStateBlock Signals Direct3D to stop recording a device-state block and retrieve a pointer to the state block interface.
EnumAdapterModes Queries the device to determine whether the specified adapter supports the requested format and display mode. This method could be used in a loop to enumerate all the available adapter modes.
EnumAdapterModes Queries the device to determine whether the specified adapter supports the requested format and display mode. This method could be used in a loop to enumerate all the available adapter modes.
EnumAdapterModesEx This method returns the actual display mode info based on the given mode index.
EvictManagedResources Evicts all managed resources, including both Direct3D and driver-managed resources.
EvictManagedResources Evicts all managed resources, including both Direct3D and driver-managed resources.
FreePrivateData Frees the specified private data associated with this resource.
FreePrivateData Frees the specified private data associated with this volume.
FreePrivateData Frees the specified private data associated with this resource.
FreePrivateData Frees the specified private data associated with this volume.
GenerateMipSubLevels Generate mipmap sublevels.
GenerateMipSubLevels Generate mipmap sublevels.
GetAdapterCount Returns the number of adapters on the system.
GetAdapterCount Returns the number of adapters on the system.
GetAdapterDisplayMode Retrieves the current display mode of the adapter.
GetAdapterDisplayMode Retrieves the current display mode of the adapter.
GetAdapterDisplayModeEx Retrieves the current display mode and rotation settings of the adapter.
GetAdapterIdentifier Describes the physical display adapters present in the system when the IDirect3D9 interface was instantiated.
GetAdapterIdentifier Describes the physical display adapters present in the system when the IDirect3D9 interface was instantiated.
GetAdapterLUID This method returns a unique identifier for the adapter that is specific to the adapter hardware. Applications can use this identifier to define robust mappings across various APIs (Direct3D 9, DXGI).
GetAdapterModeCount Returns the number of display modes available on this adapter.
GetAdapterModeCount Returns the number of display modes available on this adapter.
GetAdapterModeCountEx Returns the number of display modes available.
GetAdapterMonitor Returns the handle of the monitor associated with the Direct3D object.
GetAdapterMonitor Returns the handle of the monitor associated with the Direct3D object.
GetAutoGenFilterType Get the filter type that is used for automatically generated mipmap sublevels.
GetAutoGenFilterType Get the filter type that is used for automatically generated mipmap sublevels.
GetAvailableTextureMem Returns an estimate of the amount of available texture memory.
GetAvailableTextureMem Returns an estimate of the amount of available texture memory.
GetBackBuffer Retrieves a back buffer from the device's swap chain.
GetBackBuffer Retrieves a back buffer from the swap chain of the device.
GetBackBuffer Retrieves a back buffer from the device's swap chain.
GetBackBuffer Retrieves a back buffer from the swap chain of the device.
GetClipPlane Retrieves the coefficients of a user-defined clipping plane for the device.
GetClipPlane Retrieves the coefficients of a user-defined clipping plane for the device.
GetClipStatus Retrieves the clip status.
GetClipStatus Retrieves the clip status.
GetContainer Provides access to the parent cube texture or texture (mipmap) object, if this surface is a child level of a cube texture or a mipmap. This method can also provide access to the parent swap chain if the surface is a back-buffer child.
GetContainer Provides access to the parent volume texture object, if this surface is a child level of a volume texture.
GetContainer Provides access to the parent cube texture or texture (mipmap) object, if this surface is a child level of a cube texture or a mipmap. This method can also provide access to the parent swap chain if the surface is a back-buffer child.
GetContainer Provides access to the parent volume texture object, if this surface is a child level of a volume texture.
GetCreationParameters Retrieves the creation parameters of the device.
GetCreationParameters Retrieves the creation parameters of the device.
GetCubeMapSurface Retrieves a cube texture map surface.
GetCubeMapSurface Retrieves a cube texture map surface.
GetCurrentTexturePalette Retrieves the current texture palette.
GetCurrentTexturePalette Retrieves the current texture palette.
GetData Polls a queried resource to get the query state or a query result. For more information about queries, see Queries (Direct3D 9).
GetData Polls a queried resource to get the query state or a query result. For more information about queries, see Queries (Direct3D 9).
GetDataSize Gets the number of bytes in the query data.
GetDataSize Gets the number of bytes in the query data.
GetDC Retrieves a device context.
GetDC Retrieves a device context.
GetDeclaration Gets the vertex shader declaration.
GetDeclaration Gets the vertex shader declaration.
GetDepthStencilSurface Gets the depth-stencil surface owned by the Direct3DDevice object.
GetDepthStencilSurface Gets the depth-stencil surface owned by the Direct3DDevice object.
GetDesc Retrieves a description of the index buffer resource.
GetDesc Retrieves a description of the surface.
GetDesc Retrieves a description of the vertex buffer resource.
GetDesc Retrieves a description of the volume.
GetDesc Retrieves a description of the index buffer resource.
GetDesc Retrieves a description of the surface.
GetDesc Retrieves a description of the vertex buffer resource.
GetDesc Retrieves a description of the volume.
GetDevice Gets the device.
GetDevice Gets the device that is being queried.
GetDevice Retrieves the device associated with a resource.
GetDevice Gets the device.
GetDevice Retrieves the device associated with the swap chain.
GetDevice Gets the current device.
GetDevice Gets the device.
GetDevice Retrieves the device associated with a volume.
GetDevice Gets the device.
GetDevice Gets the device that is being queried.
GetDevice Retrieves the device associated with a resource.
GetDevice Gets the device.
GetDevice Retrieves the device associated with the swap chain.
GetDevice Gets the current device.
GetDevice Gets the device.
GetDevice Retrieves the device associated with a volume.
GetDeviceCaps Retrieves device-specific information about a device.
GetDeviceCaps Retrieves the capabilities of the rendering device.
GetDeviceCaps Retrieves device-specific information about a device.
GetDeviceCaps Retrieves the capabilities of the rendering device.
GetDirect3D Returns an interface to the instance of the Direct3D object that created the device.
GetDirect3D Returns an interface to the instance of the Direct3D object that created the device.
GetDisplayMode Retrieves the display mode's spatial resolution, color resolution, and refresh frequency.
GetDisplayMode Retrieves the display mode's spatial resolution, color resolution, and refresh frequency.
GetDisplayMode Retrieves the display mode's spatial resolution, color resolution, and refresh frequency.
GetDisplayMode Retrieves the display mode's spatial resolution, color resolution, and refresh frequency.
GetDisplayModeEx Retrieves the display mode's spatial resolution, color resolution, refresh frequency, and rotation settings.
GetDisplayModeEx Retrieves the display mode's spatial resolution, color resolution, refresh frequency, and rotation settings.
GetFrontBufferData Generates a copy of the device's front buffer and places that copy in a system memory buffer provided by the application.
GetFrontBufferData Generates a copy of the swapchain's front buffer and places that copy in a system memory buffer provided by the application.
GetFrontBufferData Generates a copy of the device's front buffer and places that copy in a system memory buffer provided by the application.
GetFrontBufferData Generates a copy of the swapchain's front buffer and places that copy in a system memory buffer provided by the application.
GetFunction Gets a pointer to the shader data.
GetFunction Gets a pointer to the shader data.
GetFunction Gets a pointer to the shader data.
GetFunction Gets a pointer to the shader data.
GetFVF Gets the fixed vertex function declaration.
GetFVF Gets the fixed vertex function declaration.
GetGammaRamp Retrieves the gamma correction ramp for the swap chain.
GetGammaRamp Retrieves the gamma correction ramp for the swap chain.
GetGPUThreadPriority Get the priority of the GPU thread.
GetIndices Retrieves index data.
GetIndices Retrieves index data.
GetLastPresentCount Returns the number of times the swapchain has been processed.
GetLevelCount Returns the number of texture levels in a multilevel texture.
GetLevelCount Returns the number of texture levels in a multilevel texture.
GetLevelDesc Retrieves a description of one face of the specified cube texture level.
GetLevelDesc Retrieves a level description of a texture resource.
GetLevelDesc Retrieves a level description of a volume texture resource.
GetLevelDesc Retrieves a description of one face of the specified cube texture level.
GetLevelDesc Retrieves a level description of a texture resource.
GetLevelDesc Retrieves a level description of a volume texture resource.
GetLight Retrieves a set of lighting properties that this device uses.
GetLight Retrieves a set of lighting properties that this device uses.
GetLightEnable Retrieves the activity status - enabled or disabled - for a set of lighting parameters within a device.
GetLightEnable Retrieves the activity status - enabled or disabled - for a set of lighting parameters within a device.
GetLOD Returns a value clamped to the maximum level-of-detail set for a managed texture (this method is not supported for an unmanaged texture).
GetLOD Returns a value clamped to the maximum level-of-detail set for a managed texture (this method is not supported for an unmanaged texture).
GetMaterial Retrieves the current material properties for the device.
GetMaterial Retrieves the current material properties for the device.
GetMaximumFrameLatency Retrieves the number of frames of data that the system is allowed to queue.
GetNPatchMode Gets the N-patch mode segments.
GetNPatchMode Gets the N-patch mode segments.
GetNumberOfSwapChains Gets the number of implicit swap chains.
GetNumberOfSwapChains Gets the number of implicit swap chains.
GetPaletteEntries Retrieves palette entries.
GetPaletteEntries Retrieves palette entries.
GetPixelShader Retrieves the currently set pixel shader.
GetPixelShader Retrieves the currently set pixel shader.
GetPixelShaderConstantB Gets a Boolean shader constant.
GetPixelShaderConstantB Gets a Boolean shader constant.
GetPixelShaderConstantF Gets a floating-point shader constant.
GetPixelShaderConstantF Gets a floating-point shader constant.
GetPixelShaderConstantI Gets an integer shader constant.
GetPixelShaderConstantI Gets an integer shader constant.
GetPresentParameters Retrieves the presentation parameters associated with a swap chain.
GetPresentParameters Retrieves the presentation parameters associated with a swap chain.
GetPriority Retrieves the priority for this resource.
GetPriority Retrieves the priority for this resource.
GetPrivateData Copies the private data associated with the resource to a provided buffer.
GetPrivateData Copies the private data associated with the volume to a provided buffer.
GetPrivateData Copies the private data associated with the resource to a provided buffer.
GetPrivateData Copies the private data associated with the volume to a provided buffer.
GetRasterStatus Returns information describing the raster of the monitor on which the swap chain is presented.
GetRasterStatus Returns information describing the raster of the monitor on which the swap chain is presented.
GetRasterStatus Returns information describing the raster of the monitor on which the swap chain is presented.
GetRasterStatus Returns information describing the raster of the monitor on which the swap chain is presented.
GetRenderState Retrieves a render-state value for a device.
GetRenderState Retrieves a render-state value for a device.
GetRenderTarget Retrieves a render-target surface.
GetRenderTarget Retrieves a render-target surface.
GetRenderTargetData Copies the render-target data from device memory to system memory.
GetRenderTargetData Copies the render-target data from device memory to system memory.
GetSamplerState Gets the sampler state value.
GetSamplerState Gets the sampler state value.
GetScissorRect Gets the scissor rectangle.
GetScissorRect Gets the scissor rectangle.
GetSoftwareVertexProcessing Gets the vertex processing (hardware or software) mode.
GetSoftwareVertexProcessing Gets the vertex processing (hardware or software) mode.
GetStreamSource Retrieves a vertex buffer bound to the specified data stream.
GetStreamSource Retrieves a vertex buffer bound to the specified data stream.
GetStreamSourceFreq Gets the stream source frequency divider value.
GetStreamSourceFreq Gets the stream source frequency divider value.
GetSurfaceLevel Retrieves the specified texture surface level.
GetSurfaceLevel Retrieves the specified texture surface level.
GetSwapChain Gets a pointer to a swap chain.
GetSwapChain Gets a pointer to a swap chain.
GetTexture Retrieves a texture assigned to a stage for a device.
GetTexture Retrieves a texture assigned to a stage for a device.
GetTextureStageState Retrieves a state value for an assigned texture.
GetTextureStageState Retrieves a state value for an assigned texture.
GetTransform Retrieves a matrix describing a transformation state.
GetTransform Retrieves a matrix describing a transformation state.
GetType Gets the query type.
GetType Returns the type of the resource.
GetType Gets the query type.
GetType Returns the type of the resource.
GetVertexDeclaration Gets a vertex shader declaration.
GetVertexDeclaration Gets a vertex shader declaration.
GetVertexShader Retrieves the currently set vertex shader.
GetVertexShader Retrieves the currently set vertex shader.
GetVertexShaderConstantB Gets a Boolean vertex shader constant.
GetVertexShaderConstantB Gets a Boolean vertex shader constant.
GetVertexShaderConstantF Gets a floating-point vertex shader constant.
GetVertexShaderConstantF Gets a floating-point vertex shader constant.
GetVertexShaderConstantI Gets an integer vertex shader constant.
GetVertexShaderConstantI Gets an integer vertex shader constant.
GetViewport Retrieves the viewport parameters currently set for the device.
GetViewport Retrieves the viewport parameters currently set for the device.
GetVolumeLevel Retrieves the specified volume texture level.
GetVolumeLevel Retrieves the specified volume texture level.
Issue Issue a query.
Issue Issue a query.
LightEnable Enables or disables a set of lighting parameters within a device.
LightEnable Enables or disables a set of lighting parameters within a device.
Lock Locks a range of index data and obtains a pointer to the index buffer memory.
Lock Locks a range of vertex data and obtains a pointer to the vertex buffer memory.
Lock Locks a range of index data and obtains a pointer to the index buffer memory.
Lock Locks a range of vertex data and obtains a pointer to the vertex buffer memory.
LockBox Locks a box on a volume resource.
LockBox Locks a box on a volume texture resource.
LockBox Locks a box on a volume resource.
LockBox Locks a box on a volume texture resource.
LockRect Locks a rectangle on a cube texture resource.
LockRect Locks a rectangle on a surface.
LockRect Locks a rectangle on a texture resource.
LockRect Locks a rectangle on a cube texture resource.
LockRect Locks a rectangle on a surface.
LockRect Locks a rectangle on a texture resource.
MultiplyTransform Multiplies a device's world, view, or projection matrices by a specified matrix.
MultiplyTransform Multiplies a device's world, view, or projection matrices by a specified matrix.
PreLoad Preloads a managed resource.
PreLoad Preloads a managed resource.
Present Presents the contents of the next buffer in the sequence of back buffers owned by the device.
Present Presents the contents of the next buffer in the sequence of back buffers owned by the swap chain.
Present Presents the contents of the next buffer in the sequence of back buffers owned by the device.
Present Presents the contents of the next buffer in the sequence of back buffers owned by the swap chain.
PresentEx Swap the swapchain's next buffer with the front buffer.
ProcessVertices Applies the vertex processing defined by the vertex shader to the set of input data streams, generating a single stream of interleaved vertex data to the destination vertex buffer.
ProcessVertices Applies the vertex processing defined by the vertex shader to the set of input data streams, generating a single stream of interleaved vertex data to the destination vertex buffer.
RegisterSoftwareDevice Registers a pluggable software device. Software devices provide software rasterization enabling applications to access a variety of software rasterizers.
RegisterSoftwareDevice Registers a pluggable software device. Software devices provide software rasterization enabling applications to access a variety of software rasterizers.
ReleaseDC Release a device context handle.
ReleaseDC Release a device context handle.
Reset Resets the type, size, and format of the swap chain.
Reset Resets the type, size, and format of the swap chain.
ResetEx Resets the type, size, and format of the swap chain with all other surfaces persistent.
SetAutoGenFilterType Set the filter type that is used for automatically generated mipmap sublevels.
SetAutoGenFilterType Set the filter type that is used for automatically generated mipmap sublevels.
SetClipPlane Sets the coefficients of a user-defined clipping plane for the device.
SetClipPlane Sets the coefficients of a user-defined clipping plane for the device.
SetClipStatus Sets the clip status.
SetClipStatus Sets the clip status.
SetConvolutionMonoKernel Prepare the texture sampler for monochrome convolution filtering on a single-color texture.
SetCurrentTexturePalette Sets the current texture palette.
SetCurrentTexturePalette Sets the current texture palette.
SetCursorPosition Sets the cursor position and update options.
SetCursorPosition Sets the cursor position and update options.
SetCursorProperties Sets properties for the cursor.
SetCursorProperties Sets properties for the cursor.
SetDepthStencilSurface Sets the depth stencil surface.
SetDepthStencilSurface Sets the depth stencil surface.
SetDialogBoxMode This method allows the use of GDI dialog boxes in full-screen mode applications.
SetDialogBoxMode This method allows the use of GDI dialog boxes in full-screen mode applications.
SetFVF Sets the current vertex stream declaration.
SetFVF Sets the current vertex stream declaration.
SetGammaRamp Sets the gamma correction ramp for the implicit swap chain. This method will affect the entire screen (not just the active window if you are running in windowed mode).
SetGammaRamp Sets the gamma correction ramp for the implicit swap chain. This method will affect the entire screen (not just the active window if you are running in windowed mode).
SetGPUThreadPriority Set the priority on the GPU thread.
SetIndices Sets index data.
SetIndices Sets index data.
SetLight Assigns a set of lighting properties for this device.
SetLight Assigns a set of lighting properties for this device.
SetLOD Sets the most detailed level-of-detail for a managed texture.
SetLOD Sets the most detailed level-of-detail for a managed texture.
SetMaterial Sets the material properties for the device.
SetMaterial Sets the material properties for the device.
SetMaximumFrameLatency Set the number of frames that the system is allowed to queue for rendering.
SetNPatchMode Enable or disable N-patches.
SetNPatchMode Enable or disable N-patches.
SetPaletteEntries Sets palette entries.
SetPaletteEntries Sets palette entries.
SetPixelShader Sets the current pixel shader to a previously created pixel shader.
SetPixelShader Sets the current pixel shader to a previously created pixel shader.
SetPixelShaderConstantB Sets a Boolean shader constant.
SetPixelShaderConstantB Sets a Boolean shader constant.
SetPixelShaderConstantF Sets a floating-point shader constant.
SetPixelShaderConstantF Sets a floating-point shader constant.
SetPixelShaderConstantI Sets an integer shader constant.
SetPixelShaderConstantI Sets an integer shader constant.
SetPriority Assigns the priority of a resource for scheduling purposes.
SetPriority Assigns the priority of a resource for scheduling purposes.
SetPrivateData Associates data with the resource that is intended for use by the application, not by Direct3D. Data is passed by value, and multiple sets of data can be associated with a single resource.
SetPrivateData Associates data with the volume that is intended for use by the application, not by Direct3D.
SetPrivateData Associates data with the resource that is intended for use by the application, not by Direct3D. Data is passed by value, and multiple sets of data can be associated with a single resource.
SetPrivateData Associates data with the volume that is intended for use by the application, not by Direct3D.
SetRenderState Sets a single device render-state parameter.
SetRenderState Sets a single device render-state parameter.
SetRenderTarget Sets a new color buffer for the device.
SetRenderTarget Sets a new color buffer for the device.
SetSamplerState Sets the sampler state value.
SetSamplerState Sets the sampler state value.
SetScissorRect Sets the scissor rectangle.
SetScissorRect Sets the scissor rectangle.
SetSoftwareVertexProcessing Use this method to switch between software and hardware vertex processing.
SetSoftwareVertexProcessing Use this method to switch between software and hardware vertex processing.
SetStreamSource Binds a vertex buffer to a device data stream. For more information, see Setting the Stream Source (Direct3D 9).
SetStreamSource Binds a vertex buffer to a device data stream. For more information, see Setting the Stream Source (Direct3D 9).
SetStreamSourceFreq Sets the stream source frequency divider value. This may be used to draw several instances of geometry.
SetStreamSourceFreq Sets the stream source frequency divider value. This may be used to draw several instances of geometry.
SetTexture Assigns a texture to a stage for a device.
SetTexture Assigns a texture to a stage for a device.
SetTextureStageState Sets the state value for the currently assigned texture.
SetTextureStageState Sets the state value for the currently assigned texture.
SetTransform Sets a single device transformation-related state.
SetTransform Sets a single device transformation-related state.
SetVertexDeclaration Sets a Vertex Declaration (Direct3D 9).
SetVertexDeclaration Sets a Vertex Declaration (Direct3D 9).
SetVertexShader Sets the vertex shader.
SetVertexShader Sets the vertex shader.
SetVertexShaderConstantB Sets a Boolean vertex shader constant.
SetVertexShaderConstantB Sets a Boolean vertex shader constant.
SetVertexShaderConstantF Sets a floating-point vertex shader constant.
SetVertexShaderConstantF Sets a floating-point vertex shader constant.
SetVertexShaderConstantI Sets an integer vertex shader constant.
SetVertexShaderConstantI Sets an integer vertex shader constant.
SetViewport Sets the viewport parameters for the device.
SetViewport Sets the viewport parameters for the device.
ShowCursor Displays or hides the cursor.
ShowCursor Displays or hides the cursor.
StretchRect Copy the contents of the source rectangle to the destination rectangle. The source rectangle can be stretched and filtered by the copy. This function is often used to change the aspect ratio of a video stream.
StretchRect Copy the contents of the source rectangle to the destination rectangle. The source rectangle can be stretched and filtered by the copy. This function is often used to change the aspect ratio of a video stream.
TestCooperativeLevel Reports the current cooperative-level status of the Direct3D device for a windowed or full-screen application.
TestCooperativeLevel Reports the current cooperative-level status of the Direct3D device for a windowed or full-screen application.
TestCooperativeLevel Reports the current cooperative-level status of the Direct3D device for a windowed or full-screen application.
Unlock Unlocks index data.
Unlock Unlocks vertex data.
Unlock Unlocks index data.
Unlock Unlocks vertex data.
UnlockBox Unlocks a box on a volume resource.
UnlockBox Unlocks a box on a volume texture resource.
UnlockBox Unlocks a box on a volume resource.
UnlockBox Unlocks a box on a volume texture resource.
UnlockRect Unlocks a rectangle on a cube texture resource.
UnlockRect Unlocks a rectangle on a surface.
UnlockRect Unlocks a rectangle on a texture resource.
UnlockRect Unlocks a rectangle on a cube texture resource.
UnlockRect Unlocks a rectangle on a surface.
UnlockRect Unlocks a rectangle on a texture resource.
UpdateSurface Copies rectangular subsets of pixels from one surface to another.
UpdateSurface Copies rectangular subsets of pixels from one surface to another.
UpdateTexture Updates the dirty portions of a texture.
UpdateTexture Updates the dirty portions of a texture.
ValidateDevice Reports the device's ability to render the current texture-blending operations and arguments in a single pass.
ValidateDevice Reports the device's ability to render the current texture-blending operations and arguments in a single pass.
WaitForVBlank Suspend execution of the calling thread until the next vertical blank signal.

Interfaces

Title Description
IDirect3D9 Applications use the methods of the IDirect3D9 interface to create Microsoft Direct3D objects and set up the environment. This interface includes methods for enumerating and retrieving capabilities of the device.
IDirect3D9 Applications use the methods of the IDirect3D9 interface to create Microsoft Direct3D objects and set up the environment. This interface includes methods for enumerating and retrieving capabilities of the device.
IDirect3D9Ex Applications use the methods of the IDirect3D9Ex interface (which inherits from IDirect3D9) to create Microsoft Direct3D 9Ex objects and set up the environment.
IDirect3DBaseTexture9 Applications use the methods of the IDirect3DBaseTexture9 interface to manipulate texture resources including cube and volume textures.
IDirect3DBaseTexture9 Applications use the methods of the IDirect3DBaseTexture9 interface to manipulate texture resources including cube and volume textures.
IDirect3DCubeTexture9 Applications use the methods of the IDirect3DCubeTexture9 interface to manipulate a cube texture resource.
IDirect3DCubeTexture9 Applications use the methods of the IDirect3DCubeTexture9 interface to manipulate a cube texture resource.
IDirect3DDevice9 Applications use the methods of the IDirect3DDevice9 interface to perform DrawPrimitive-based rendering, create resources, work with system-level variables, adjust gamma ramp levels, work with palettes, and create shaders.
IDirect3DDevice9 Applications use the methods of the IDirect3DDevice9 interface to perform DrawPrimitive-based rendering, create resources, work with system-level variables, adjust gamma ramp levels, work with palettes, and create shaders.
IDirect3DDevice9Ex Applications use the methods of the IDirect3DDevice9Ex interface to render primitives, create resources, work with system-level variables, adjust gamma ramp levels, work with palettes, and create shaders.
IDirect3DIndexBuffer9 Applications use the methods of the IDirect3DIndexBuffer9 interface to manipulate an index buffer resource.
IDirect3DIndexBuffer9 Applications use the methods of the IDirect3DIndexBuffer9 interface to manipulate an index buffer resource.
IDirect3DPixelShader9 Applications use the methods of the IDirect3DPixelShader9 interface to encapsulate the functionality of a pixel shader.
IDirect3DPixelShader9 Applications use the methods of the IDirect3DPixelShader9 interface to encapsulate the functionality of a pixel shader.
IDirect3DQuery9 Applications use the methods of the IDirect3DQuery9 interface to perform asynchronous queries on a driver.
IDirect3DQuery9 Applications use the methods of the IDirect3DQuery9 interface to perform asynchronous queries on a driver.
IDirect3DResource9 Applications use the methods of the IDirect3DResource9 interface to query and prepare resources.
IDirect3DResource9 Applications use the methods of the IDirect3DResource9 interface to query and prepare resources.
IDirect3DStateBlock9 Applications use the methods of the IDirect3DStateBlock9 interface to encapsulate render states.
IDirect3DStateBlock9 Applications use the methods of the IDirect3DStateBlock9 interface to encapsulate render states.
IDirect3DSurface9 Applications use the methods of the IDirect3DSurface9 interface to query and prepare surfaces.
IDirect3DSurface9 Applications use the methods of the IDirect3DSurface9 interface to query and prepare surfaces.
IDirect3DSwapChain9 Applications use the methods of the IDirect3DSwapChain9 interface to manipulate a swap chain.
IDirect3DSwapChain9 Applications use the methods of the IDirect3DSwapChain9 interface to manipulate a swap chain.
IDirect3DSwapChain9Ex Applications use the methods of the IDirect3DSwapChain9Ex interface to manipulate a swap chain.
IDirect3DTexture9 Applications use the methods of the IDirect3DTexture9 interface to manipulate a texture resource.
IDirect3DTexture9 Applications use the methods of the IDirect3DTexture9 interface to manipulate a texture resource.
IDirect3DVertexBuffer9 Applications use the methods of the IDirect3DVertexBuffer9 interface to manipulate vertex buffer resources.
IDirect3DVertexBuffer9 Applications use the methods of the IDirect3DVertexBuffer9 interface to manipulate vertex buffer resources.
IDirect3DVertexDeclaration9 Applications use the methods of the IDirect3DVertexDeclaration9 interface to encapsulate the vertex shader declaration.
IDirect3DVertexDeclaration9 Applications use the methods of the IDirect3DVertexDeclaration9 interface to encapsulate the vertex shader declaration.
IDirect3DVertexShader9 Applications use the methods of the IDirect3DVertexShader9 interface to encapsulate the functionality of a vertex shader.
IDirect3DVertexShader9 Applications use the methods of the IDirect3DVertexShader9 interface to encapsulate the functionality of a vertex shader.
IDirect3DVolume9 Applications use the methods of the IDirect3DVolume9 interface to manipulate volume resources.
IDirect3DVolume9 Applications use the methods of the IDirect3DVolume9 interface to manipulate volume resources.
IDirect3DVolumeTexture9 Applications use the methods of the IDirect3DVolumeTexture9 interface to manipulate a volume texture resource.
IDirect3DVolumeTexture9 Applications use the methods of the IDirect3DVolumeTexture9 interface to manipulate a volume texture resource.

Structures

Title Description
D3DCAPS9 Represents the capabilities of the hardware exposed through the Direct3D object.
D3DPSHADERCAPS2_0 Pixel shader driver caps.
D3DVSHADERCAPS2_0 Vertex shader caps.
PALETTEENTRY Specifies the color and usage of an entry in a logical palette.