IDirect3DDevice9 Members D3D9设备的全部接口函数

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 Members

MethodDescription
IDirect3DDevice9::BeginSceneBegins a scene.
IDirect3DDevice9::BeginStateBlockSignals Direct3D to begin recording a device-state block.
IDirect3DDevice9::ClearClears one or more surfaces such as a render target, Multiple Render Targets (Direct3D 9)multiple render targets
IDirect3DDevice9::ColorFillAllows an application to fill a rectangular area of a D3DPOOL_DEFAULT surface with a specified color.
IDirect3DDevice9::CreateAdditionalSwapChainCreates an additional swap chain for rendering multiple views.
IDirect3DDevice9::CreateCubeTextureCreates a cube texture resource.
IDirect3DDevice9::CreateDepthStencilSurfaceCreates a depth-stencil resource.
IDirect3DDevice9::CreateIndexBufferCreates an index buffer.
IDirect3DDevice9::CreateOffscreenPlainSurfaceCreate an off-screen surface.
IDirect3DDevice9::CreatePixelShaderCreates a pixel shader.
IDirect3DDevice9::CreateQueryCreates a status query.
IDirect3DDevice9::CreateRenderTargetCreates a render-target surface.
IDirect3DDevice9::CreateStateBlockCreates a new state block that contains the values for all device states, vertex-related states, or pixel-related states.
IDirect3DDevice9::CreateTextureCreates a texture resource.
IDirect3DDevice9::CreateVertexBufferCreates a vertex buffer.
IDirect3DDevice9::CreateVertexDeclarationCreate a vertex shader declaration from the device and the vertex elements.
IDirect3DDevice9::CreateVertexShaderCreates a vertex shader.
IDirect3DDevice9::CreateVolumeTextureCreates a volume texture resource.
IDirect3DDevice9::DeletePatchFrees a cached high-order patch.
IDirect3DDevice9::DrawIndexedPrimitiveBased on indexing, renders the specified geometric primitive into an array of vertices.
IDirect3DDevice9::DrawIndexedPrimitiveUPRenders the specified geometric primitive with data specified by a user memory pointer.
IDirect3DDevice9::DrawPrimitiveRenders a sequence of nonindexed, geometric primitives of the specified type from the current set of data input streams.
IDirect3DDevice9::DrawPrimitiveUPRenders data specified by a user memory pointer as a sequence of geometric primitives of the specified type.
IDirect3DDevice9::DrawRectPatchDraws a rectangular patch using the currently set streams.
IDirect3DDevice9::DrawTriPatchDraws a triangular patch using the currently set streams.
IDirect3DDevice9::EndSceneEnds a scene that was begun by calling IDirect3DDevice9::BeginScene.
IDirect3DDevice9::EndStateBlockSignals Direct3D to stop recording a device-state block and retrieve a pointer to the state block interface.
IDirect3DDevice9::EvictManagedResourcesEvicts all managed resources, including both Direct3D and driver-managed resources.
IDirect3DDevice9::GetAvailableTextureMemReturns an estimate of the amount of available texture memory.
IDirect3DDevice9::GetBackBufferRetrieves a back buffer from the device's swap chain.
IDirect3DDevice9::GetClipPlaneRetrieves the coefficients of a user-defined clipping plane for the device.
IDirect3DDevice9::GetClipStatusRetrieves the clip status.
IDirect3DDevice9::GetCreationParametersRetrieves the creation parameters of the device.
IDirect3DDevice9::GetCurrentTexturePaletteRetrieves the current texture palette.
IDirect3DDevice9::GetDepthStencilSurfaceGets the depth-stencil surface owned by the Direct3DDevice object.
IDirect3DDevice9::GetDeviceCapsRetrieves the capabilities of the rendering device.
IDirect3DDevice9::GetDirect3DReturns an interface to the instance of the Direct3D object that created the device.
IDirect3DDevice9::GetDisplayModeRetrieves the display mode's spatial resolution, color resolution, and refresh frequency.
IDirect3DDevice9::GetFrontBufferDataGenerates a copy of the device's front buffer and places that copy in a system memory buffer provided by the application.
IDirect3DDevice9::GetFVFGets the fixed vertex function declaration.
IDirect3DDevice9::GetGammaRampRetrieves the gamma correction ramp for the swap chain.
IDirect3DDevice9::GetIndicesRetrieves index data.
IDirect3DDevice9::GetLightRetrieves a set of lighting properties that this device uses.
IDirect3DDevice9::GetLightEnableRetrieves the activity status - enabled or disabled - for a set of lighting parameters within a device.
IDirect3DDevice9::GetMaterialRetrieves the current material properties for the device.
IDirect3DDevice9::GetNPatchModeGets the N-patch mode segments.
IDirect3DDevice9::GetNumberOfSwapChainsGets the number of implicit swap chains.
IDirect3DDevice9::GetPaletteEntriesRetrieves palette entries.
IDirect3DDevice9::GetPixelShaderRetrieves the currently set pixel shader.
IDirect3DDevice9::GetPixelShaderConstantBGets a Boolean shader constant.
IDirect3DDevice9::GetPixelShaderConstantFGets a floating-point shader constant.
IDirect3DDevice9::GetPixelShaderConstantIGets an integer shader constant.
IDirect3DDevice9::GetRasterStatusReturns information describing the raster of the monitor on which the swap chain is presented.
IDirect3DDevice9::GetRenderStateRetrieves a render-state value for a device.
IDirect3DDevice9::GetRenderTargetRetrieves a render-target surface.
IDirect3DDevice9::GetRenderTargetDataCopies the render-target data from device memory to system memory.
IDirect3DDevice9::GetSamplerStateGets the sampler state value.
IDirect3DDevice9::GetScissorRectGets the scissor rectangle.
IDirect3DDevice9::GetSoftwareVertexProcessingGets the vertex processing (hardware or software) mode.
IDirect3DDevice9::GetStreamSourceRetrieves a vertex buffer bound to the specified data stream.
IDirect3DDevice9::GetStreamSourceFreqGets the stream source frequency divider value.
IDirect3DDevice9::GetSwapChainGets a pointer to a swap chain.
IDirect3DDevice9::GetTextureRetrieves a texture assigned to a stage for a device.
IDirect3DDevice9::GetTextureStageStateRetrieves a state value for an assigned texture.
IDirect3DDevice9::GetTransformRetrieves a matrix describing a transformation state.
IDirect3DDevice9::GetVertexDeclarationGets a vertex shader declaration.
IDirect3DDevice9::GetVertexShaderRetrieves the currently set vertex shader.
IDirect3DDevice9::GetVertexShaderConstantBGets a Boolean vertex shader constant.
IDirect3DDevice9::GetVertexShaderConstantFGets a floating-point vertex shader constant.
IDirect3DDevice9::GetVertexShaderConstantIGets an integer vertex shader constant.
IDirect3DDevice9::GetViewportRetrieves the viewport parameters currently set for the device.
IDirect3DDevice9::LightEnableEnables or disables a set of lighting parameters within a device.
IDirect3DDevice9::MultiplyTransformMultiplies a device's world, view, or projection matrices by a specified matrix.
IDirect3DDevice9::PresentPresents the contents of the next buffer in the sequence of back buffers owned by the device.
IDirect3DDevice9::ProcessVerticesApplies 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.
IDirect3DDevice9::ResetResets the type, size, and format of the swap chain.
IDirect3DDevice9::SetClipPlaneSets the coefficients of a user-defined clipping plane for the device.
IDirect3DDevice9::SetClipStatusSets the clip status.
IDirect3DDevice9::SetCurrentTexturePaletteSets the current texture palette.
IDirect3DDevice9::SetCursorPositionSets the cursor position and update options.
IDirect3DDevice9::SetCursorPropertiesSets properties for the cursor.
IDirect3DDevice9::SetDepthStencilSurfaceSets the depth stencil surface.
IDirect3DDevice9::SetDialogBoxModeThis method allows the use of GDI dialog boxes in full-screen mode applications.
IDirect3DDevice9::SetFVFSets the current vertex stream declaration.
IDirect3DDevice9::SetGammaRampSets 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).
IDirect3DDevice9::SetIndicesSets index data.
IDirect3DDevice9::SetLightAssigns a set of lighting properties for this device.
IDirect3DDevice9::SetMaterialSets the material properties for the device.
IDirect3DDevice9::SetNPatchModeEnable or disable N-patches.
IDirect3DDevice9::SetPaletteEntriesSets palette entries.
IDirect3DDevice9::SetPixelShaderSets the current pixel shader to a previously created pixel shader.
IDirect3DDevice9::SetPixelShaderConstantBSets a Boolean shader constant.
IDirect3DDevice9::SetPixelShaderConstantFSets a floating-point shader constant.
IDirect3DDevice9::SetPixelShaderConstantISets an integer shader constant.
IDirect3DDevice9::SetRenderStateSets a single device render-state parameter.
IDirect3DDevice9::SetRenderTargetSets a new color buffer for the device.
IDirect3DDevice9::SetSamplerStateSets the sampler state value.
IDirect3DDevice9::SetScissorRectSets the scissor rectangle.
IDirect3DDevice9::SetSoftwareVertexProcessingUse this method to switch between software and hardware vertex processing.
IDirect3DDevice9::SetStreamSourceBinds a vertex buffer to a device data stream. For more information, see Setting the Stream Source (Direct3D 9).
IDirect3DDevice9::SetStreamSourceFreqSets the stream source frequency divider value. This may be used to draw several instances of geometry.
IDirect3DDevice9::SetTextureAssigns a texture to a stage for a device.
IDirect3DDevice9::SetTextureStageStateSets the state value for the currently assigned texture.
IDirect3DDevice9::SetTransformSets a single device transformation-related state.
IDirect3DDevice9::SetVertexDeclarationSets a Vertex Declaration (Direct3D 9).
IDirect3DDevice9::SetVertexShaderSets the vertex shader.
IDirect3DDevice9::SetVertexShaderConstantBSets a Boolean vertex shader constant.
IDirect3DDevice9::SetVertexShaderConstantFSets a floating-point vertex shader constant.
IDirect3DDevice9::SetVertexShaderConstantISets an integer vertex shader constant.
IDirect3DDevice9::SetViewportSets the viewport parameters for the device.
IDirect3DDevice9::ShowCursorDisplays or hides the cursor.
IDirect3DDevice9::StretchRectCopy 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.
IDirect3DDevice9::TestCooperativeLevelReports the current cooperative-level status of the Direct3D device for a windowed or full-screen application.
IDirect3DDevice9::UpdateSurfaceCopies rectangular subsets of pixels from one surface to another.
IDirect3DDevice9::UpdateTextureUpdates the dirty portions of a texture.
IDirect3DDevice9::ValidateDeviceReports the device's ability to render the current texture-blending operations and arguments in a single pass.
Remarks

The IDirect3DDevice9 interface is obtained by calling the IDirect3D9::CreateDevice method.

This interface, like all COM interfaces, inherits the IUnknown interface methods.

The LPDIRECT3DDEVICE9 and PDIRECT3DDEVICE9 types are defined as pointers to the IDirect3DDevice9 interface.

typedef struct IDirect3DDevice9 *LPDIRECT3DDEVICE9, *PDIRECT3DDEVICE9;
See Also

IDirect3D9::CreateDevice

Requirements

Header: Declared in D3D9.h.

Library: Use D3d9.lib.

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值