pub trait IDirect3DDevice9_Impl: Sized {
Show 116 methods // Required methods fn TestCooperativeLevel(&self) -> Result<()>; fn GetAvailableTextureMem(&self) -> u32; fn EvictManagedResources(&self) -> Result<()>; fn GetDirect3D(&self) -> Result<IDirect3D9>; fn GetDeviceCaps(&self, pcaps: *mut D3DCAPS9) -> Result<()>; fn GetDisplayMode( &self, iswapchain: u32, pmode: *mut D3DDISPLAYMODE, ) -> Result<()>; fn GetCreationParameters( &self, pparameters: *mut D3DDEVICE_CREATION_PARAMETERS, ) -> Result<()>; fn SetCursorProperties( &self, xhotspot: u32, yhotspot: u32, pcursorbitmap: Option<&IDirect3DSurface9>, ) -> Result<()>; fn SetCursorPosition(&self, x: i32, y: i32, flags: u32); fn ShowCursor(&self, bshow: BOOL) -> BOOL; fn CreateAdditionalSwapChain( &self, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, pswapchain: *mut Option<IDirect3DSwapChain9>, ) -> Result<()>; fn GetSwapChain(&self, iswapchain: u32) -> Result<IDirect3DSwapChain9>; fn GetNumberOfSwapChains(&self) -> u32; fn Reset( &self, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, ) -> Result<()>; fn Present( &self, psourcerect: *const RECT, pdestrect: *const RECT, hdestwindowoverride: HWND, pdirtyregion: *const RGNDATA, ) -> Result<()>; fn GetBackBuffer( &self, iswapchain: u32, ibackbuffer: u32, type: D3DBACKBUFFER_TYPE, ) -> Result<IDirect3DSurface9>; fn GetRasterStatus( &self, iswapchain: u32, prasterstatus: *mut D3DRASTER_STATUS, ) -> Result<()>; fn SetDialogBoxMode(&self, benabledialogs: BOOL) -> Result<()>; fn SetGammaRamp( &self, iswapchain: u32, flags: u32, pramp: *const D3DGAMMARAMP, ); fn GetGammaRamp(&self, iswapchain: u32, pramp: *mut D3DGAMMARAMP); fn CreateTexture( &self, width: u32, height: u32, levels: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, pptexture: *mut Option<IDirect3DTexture9>, psharedhandle: *mut HANDLE, ) -> Result<()>; fn CreateVolumeTexture( &self, width: u32, height: u32, depth: u32, levels: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, ppvolumetexture: *mut Option<IDirect3DVolumeTexture9>, psharedhandle: *mut HANDLE, ) -> Result<()>; fn CreateCubeTexture( &self, edgelength: u32, levels: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, ppcubetexture: *mut Option<IDirect3DCubeTexture9>, psharedhandle: *mut HANDLE, ) -> Result<()>; fn CreateVertexBuffer( &self, length: u32, usage: u32, fvf: u32, pool: D3DPOOL, ppvertexbuffer: *mut Option<IDirect3DVertexBuffer9>, psharedhandle: *mut HANDLE, ) -> Result<()>; fn CreateIndexBuffer( &self, length: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, ppindexbuffer: *mut Option<IDirect3DIndexBuffer9>, psharedhandle: *mut HANDLE, ) -> Result<()>; fn CreateRenderTarget( &self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, lockable: BOOL, ppsurface: *mut Option<IDirect3DSurface9>, psharedhandle: *mut HANDLE, ) -> Result<()>; fn CreateDepthStencilSurface( &self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, discard: BOOL, ppsurface: *mut Option<IDirect3DSurface9>, psharedhandle: *mut HANDLE, ) -> Result<()>; fn UpdateSurface( &self, psourcesurface: Option<&IDirect3DSurface9>, psourcerect: *const RECT, pdestinationsurface: Option<&IDirect3DSurface9>, pdestpoint: *const POINT, ) -> Result<()>; fn UpdateTexture( &self, psourcetexture: Option<&IDirect3DBaseTexture9>, pdestinationtexture: Option<&IDirect3DBaseTexture9>, ) -> Result<()>; fn GetRenderTargetData( &self, prendertarget: Option<&IDirect3DSurface9>, pdestsurface: Option<&IDirect3DSurface9>, ) -> Result<()>; fn GetFrontBufferData( &self, iswapchain: u32, pdestsurface: Option<&IDirect3DSurface9>, ) -> Result<()>; fn StretchRect( &self, psourcesurface: Option<&IDirect3DSurface9>, psourcerect: *const RECT, pdestsurface: Option<&IDirect3DSurface9>, pdestrect: *const RECT, filter: D3DTEXTUREFILTERTYPE, ) -> Result<()>; fn ColorFill( &self, psurface: Option<&IDirect3DSurface9>, prect: *const RECT, color: u32, ) -> Result<()>; fn CreateOffscreenPlainSurface( &self, width: u32, height: u32, format: D3DFORMAT, pool: D3DPOOL, ppsurface: *mut Option<IDirect3DSurface9>, psharedhandle: *mut HANDLE, ) -> Result<()>; fn SetRenderTarget( &self, rendertargetindex: u32, prendertarget: Option<&IDirect3DSurface9>, ) -> Result<()>; fn GetRenderTarget( &self, rendertargetindex: u32, ) -> Result<IDirect3DSurface9>; fn SetDepthStencilSurface( &self, pnewzstencil: Option<&IDirect3DSurface9>, ) -> Result<()>; fn GetDepthStencilSurface(&self) -> Result<IDirect3DSurface9>; fn BeginScene(&self) -> Result<()>; fn EndScene(&self) -> Result<()>; fn Clear( &self, count: u32, prects: *const D3DRECT, flags: u32, color: u32, z: f32, stencil: u32, ) -> Result<()>; fn SetTransform( &self, state: D3DTRANSFORMSTATETYPE, pmatrix: *const Matrix4x4, ) -> Result<()>; fn GetTransform( &self, state: D3DTRANSFORMSTATETYPE, pmatrix: *mut Matrix4x4, ) -> Result<()>; fn MultiplyTransform( &self, param0: D3DTRANSFORMSTATETYPE, param1: *const Matrix4x4, ) -> Result<()>; fn SetViewport(&self, pviewport: *const D3DVIEWPORT9) -> Result<()>; fn GetViewport(&self, pviewport: *mut D3DVIEWPORT9) -> Result<()>; fn SetMaterial(&self, pmaterial: *const D3DMATERIAL9) -> Result<()>; fn GetMaterial(&self, pmaterial: *mut D3DMATERIAL9) -> Result<()>; fn SetLight(&self, index: u32, param1: *const D3DLIGHT9) -> Result<()>; fn GetLight(&self, index: u32, param1: *mut D3DLIGHT9) -> Result<()>; fn LightEnable(&self, index: u32, enable: BOOL) -> Result<()>; fn GetLightEnable(&self, index: u32, penable: *mut BOOL) -> Result<()>; fn SetClipPlane(&self, index: u32, pplane: *const f32) -> Result<()>; fn GetClipPlane(&self, index: u32, pplane: *mut f32) -> Result<()>; fn SetRenderState( &self, state: D3DRENDERSTATETYPE, value: u32, ) -> Result<()>; fn GetRenderState( &self, state: D3DRENDERSTATETYPE, pvalue: *mut u32, ) -> Result<()>; fn CreateStateBlock( &self, type: D3DSTATEBLOCKTYPE, ) -> Result<IDirect3DStateBlock9>; fn BeginStateBlock(&self) -> Result<()>; fn EndStateBlock(&self) -> Result<IDirect3DStateBlock9>; fn SetClipStatus(&self, pclipstatus: *const D3DCLIPSTATUS9) -> Result<()>; fn GetClipStatus(&self, pclipstatus: *mut D3DCLIPSTATUS9) -> Result<()>; fn GetTexture(&self, stage: u32) -> Result<IDirect3DBaseTexture9>; fn SetTexture( &self, stage: u32, ptexture: Option<&IDirect3DBaseTexture9>, ) -> Result<()>; fn GetTextureStageState( &self, stage: u32, type: D3DTEXTURESTAGESTATETYPE, pvalue: *mut u32, ) -> Result<()>; fn SetTextureStageState( &self, stage: u32, type: D3DTEXTURESTAGESTATETYPE, value: u32, ) -> Result<()>; fn GetSamplerState( &self, sampler: u32, type: D3DSAMPLERSTATETYPE, pvalue: *mut u32, ) -> Result<()>; fn SetSamplerState( &self, sampler: u32, type: D3DSAMPLERSTATETYPE, value: u32, ) -> Result<()>; fn ValidateDevice(&self, pnumpasses: *mut u32) -> Result<()>; fn SetPaletteEntries( &self, palettenumber: u32, pentries: *const PALETTEENTRY, ) -> Result<()>; fn GetPaletteEntries( &self, palettenumber: u32, pentries: *mut PALETTEENTRY, ) -> Result<()>; fn SetCurrentTexturePalette(&self, palettenumber: u32) -> Result<()>; fn GetCurrentTexturePalette(&self, palettenumber: *mut u32) -> Result<()>; fn SetScissorRect(&self, prect: *const RECT) -> Result<()>; fn GetScissorRect(&self, prect: *mut RECT) -> Result<()>; fn SetSoftwareVertexProcessing(&self, bsoftware: BOOL) -> Result<()>; fn GetSoftwareVertexProcessing(&self) -> BOOL; fn SetNPatchMode(&self, nsegments: f32) -> Result<()>; fn GetNPatchMode(&self) -> f32; fn DrawPrimitive( &self, primitivetype: D3DPRIMITIVETYPE, startvertex: u32, primitivecount: u32, ) -> Result<()>; fn DrawIndexedPrimitive( &self, param0: D3DPRIMITIVETYPE, basevertexindex: i32, minvertexindex: u32, numvertices: u32, startindex: u32, primcount: u32, ) -> Result<()>; fn DrawPrimitiveUP( &self, primitivetype: D3DPRIMITIVETYPE, primitivecount: u32, pvertexstreamzerodata: *const c_void, vertexstreamzerostride: u32, ) -> Result<()>; fn DrawIndexedPrimitiveUP( &self, primitivetype: D3DPRIMITIVETYPE, minvertexindex: u32, numvertices: u32, primitivecount: u32, pindexdata: *const c_void, indexdataformat: D3DFORMAT, pvertexstreamzerodata: *const c_void, vertexstreamzerostride: u32, ) -> Result<()>; fn ProcessVertices( &self, srcstartindex: u32, destindex: u32, vertexcount: u32, pdestbuffer: Option<&IDirect3DVertexBuffer9>, pvertexdecl: Option<&IDirect3DVertexDeclaration9>, flags: u32, ) -> Result<()>; fn CreateVertexDeclaration( &self, pvertexelements: *const D3DVERTEXELEMENT9, ) -> Result<IDirect3DVertexDeclaration9>; fn SetVertexDeclaration( &self, pdecl: Option<&IDirect3DVertexDeclaration9>, ) -> Result<()>; fn GetVertexDeclaration(&self) -> Result<IDirect3DVertexDeclaration9>; fn SetFVF(&self, fvf: u32) -> Result<()>; fn GetFVF(&self, pfvf: *mut u32) -> Result<()>; fn CreateVertexShader( &self, pfunction: *const u32, ) -> Result<IDirect3DVertexShader9>; fn SetVertexShader( &self, pshader: Option<&IDirect3DVertexShader9>, ) -> Result<()>; fn GetVertexShader(&self) -> Result<IDirect3DVertexShader9>; fn SetVertexShaderConstantF( &self, startregister: u32, pconstantdata: *const f32, vector4fcount: u32, ) -> Result<()>; fn GetVertexShaderConstantF( &self, startregister: u32, pconstantdata: *mut f32, vector4fcount: u32, ) -> Result<()>; fn SetVertexShaderConstantI( &self, startregister: u32, pconstantdata: *const i32, vector4icount: u32, ) -> Result<()>; fn GetVertexShaderConstantI( &self, startregister: u32, pconstantdata: *mut i32, vector4icount: u32, ) -> Result<()>; fn SetVertexShaderConstantB( &self, startregister: u32, pconstantdata: *const BOOL, boolcount: u32, ) -> Result<()>; fn GetVertexShaderConstantB( &self, startregister: u32, pconstantdata: *mut BOOL, boolcount: u32, ) -> Result<()>; fn SetStreamSource( &self, streamnumber: u32, pstreamdata: Option<&IDirect3DVertexBuffer9>, offsetinbytes: u32, stride: u32, ) -> Result<()>; fn GetStreamSource( &self, streamnumber: u32, ppstreamdata: *mut Option<IDirect3DVertexBuffer9>, poffsetinbytes: *mut u32, pstride: *mut u32, ) -> Result<()>; fn SetStreamSourceFreq(&self, streamnumber: u32, setting: u32) -> Result<()>; fn GetStreamSourceFreq( &self, streamnumber: u32, psetting: *mut u32, ) -> Result<()>; fn SetIndices( &self, pindexdata: Option<&IDirect3DIndexBuffer9>, ) -> Result<()>; fn GetIndices(&self) -> Result<IDirect3DIndexBuffer9>; fn CreatePixelShader( &self, pfunction: *const u32, ) -> Result<IDirect3DPixelShader9>; fn SetPixelShader( &self, pshader: Option<&IDirect3DPixelShader9>, ) -> Result<()>; fn GetPixelShader(&self) -> Result<IDirect3DPixelShader9>; fn SetPixelShaderConstantF( &self, startregister: u32, pconstantdata: *const f32, vector4fcount: u32, ) -> Result<()>; fn GetPixelShaderConstantF( &self, startregister: u32, pconstantdata: *mut f32, vector4fcount: u32, ) -> Result<()>; fn SetPixelShaderConstantI( &self, startregister: u32, pconstantdata: *const i32, vector4icount: u32, ) -> Result<()>; fn GetPixelShaderConstantI( &self, startregister: u32, pconstantdata: *mut i32, vector4icount: u32, ) -> Result<()>; fn SetPixelShaderConstantB( &self, startregister: u32, pconstantdata: *const BOOL, boolcount: u32, ) -> Result<()>; fn GetPixelShaderConstantB( &self, startregister: u32, pconstantdata: *mut BOOL, boolcount: u32, ) -> Result<()>; fn DrawRectPatch( &self, handle: u32, pnumsegs: *const f32, prectpatchinfo: *const D3DRECTPATCH_INFO, ) -> Result<()>; fn DrawTriPatch( &self, handle: u32, pnumsegs: *const f32, ptripatchinfo: *const D3DTRIPATCH_INFO, ) -> Result<()>; fn DeletePatch(&self, handle: u32) -> Result<()>; fn CreateQuery(&self, type: D3DQUERYTYPE) -> Result<IDirect3DQuery9>;
}

Required Methods§

fn TestCooperativeLevel(&self) -> Result<()>

fn GetAvailableTextureMem(&self) -> u32

fn EvictManagedResources(&self) -> Result<()>

fn GetDirect3D(&self) -> Result<IDirect3D9>

fn GetDeviceCaps(&self, pcaps: *mut D3DCAPS9) -> Result<()>

fn GetDisplayMode( &self, iswapchain: u32, pmode: *mut D3DDISPLAYMODE, ) -> Result<()>

fn GetCreationParameters( &self, pparameters: *mut D3DDEVICE_CREATION_PARAMETERS, ) -> Result<()>

fn SetCursorProperties( &self, xhotspot: u32, yhotspot: u32, pcursorbitmap: Option<&IDirect3DSurface9>, ) -> Result<()>

fn SetCursorPosition(&self, x: i32, y: i32, flags: u32)

fn ShowCursor(&self, bshow: BOOL) -> BOOL

fn CreateAdditionalSwapChain( &self, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, pswapchain: *mut Option<IDirect3DSwapChain9>, ) -> Result<()>

fn GetSwapChain(&self, iswapchain: u32) -> Result<IDirect3DSwapChain9>

fn GetNumberOfSwapChains(&self) -> u32

fn Reset( &self, ppresentationparameters: *mut D3DPRESENT_PARAMETERS, ) -> Result<()>

fn Present( &self, psourcerect: *const RECT, pdestrect: *const RECT, hdestwindowoverride: HWND, pdirtyregion: *const RGNDATA, ) -> Result<()>

fn GetBackBuffer( &self, iswapchain: u32, ibackbuffer: u32, type: D3DBACKBUFFER_TYPE, ) -> Result<IDirect3DSurface9>

fn GetRasterStatus( &self, iswapchain: u32, prasterstatus: *mut D3DRASTER_STATUS, ) -> Result<()>

fn SetDialogBoxMode(&self, benabledialogs: BOOL) -> Result<()>

fn SetGammaRamp(&self, iswapchain: u32, flags: u32, pramp: *const D3DGAMMARAMP)

fn GetGammaRamp(&self, iswapchain: u32, pramp: *mut D3DGAMMARAMP)

fn CreateTexture( &self, width: u32, height: u32, levels: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, pptexture: *mut Option<IDirect3DTexture9>, psharedhandle: *mut HANDLE, ) -> Result<()>

fn CreateVolumeTexture( &self, width: u32, height: u32, depth: u32, levels: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, ppvolumetexture: *mut Option<IDirect3DVolumeTexture9>, psharedhandle: *mut HANDLE, ) -> Result<()>

fn CreateCubeTexture( &self, edgelength: u32, levels: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, ppcubetexture: *mut Option<IDirect3DCubeTexture9>, psharedhandle: *mut HANDLE, ) -> Result<()>

fn CreateVertexBuffer( &self, length: u32, usage: u32, fvf: u32, pool: D3DPOOL, ppvertexbuffer: *mut Option<IDirect3DVertexBuffer9>, psharedhandle: *mut HANDLE, ) -> Result<()>

fn CreateIndexBuffer( &self, length: u32, usage: u32, format: D3DFORMAT, pool: D3DPOOL, ppindexbuffer: *mut Option<IDirect3DIndexBuffer9>, psharedhandle: *mut HANDLE, ) -> Result<()>

fn CreateRenderTarget( &self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, lockable: BOOL, ppsurface: *mut Option<IDirect3DSurface9>, psharedhandle: *mut HANDLE, ) -> Result<()>

fn CreateDepthStencilSurface( &self, width: u32, height: u32, format: D3DFORMAT, multisample: D3DMULTISAMPLE_TYPE, multisamplequality: u32, discard: BOOL, ppsurface: *mut Option<IDirect3DSurface9>, psharedhandle: *mut HANDLE, ) -> Result<()>

fn UpdateSurface( &self, psourcesurface: Option<&IDirect3DSurface9>, psourcerect: *const RECT, pdestinationsurface: Option<&IDirect3DSurface9>, pdestpoint: *const POINT, ) -> Result<()>

fn UpdateTexture( &self, psourcetexture: Option<&IDirect3DBaseTexture9>, pdestinationtexture: Option<&IDirect3DBaseTexture9>, ) -> Result<()>

fn GetRenderTargetData( &self, prendertarget: Option<&IDirect3DSurface9>, pdestsurface: Option<&IDirect3DSurface9>, ) -> Result<()>

fn GetFrontBufferData( &self, iswapchain: u32, pdestsurface: Option<&IDirect3DSurface9>, ) -> Result<()>

fn StretchRect( &self, psourcesurface: Option<&IDirect3DSurface9>, psourcerect: *const RECT, pdestsurface: Option<&IDirect3DSurface9>, pdestrect: *const RECT, filter: D3DTEXTUREFILTERTYPE, ) -> Result<()>

fn ColorFill( &self, psurface: Option<&IDirect3DSurface9>, prect: *const RECT, color: u32, ) -> Result<()>

fn CreateOffscreenPlainSurface( &self, width: u32, height: u32, format: D3DFORMAT, pool: D3DPOOL, ppsurface: *mut Option<IDirect3DSurface9>, psharedhandle: *mut HANDLE, ) -> Result<()>

fn SetRenderTarget( &self, rendertargetindex: u32, prendertarget: Option<&IDirect3DSurface9>, ) -> Result<()>

fn GetRenderTarget(&self, rendertargetindex: u32) -> Result<IDirect3DSurface9>

fn SetDepthStencilSurface( &self, pnewzstencil: Option<&IDirect3DSurface9>, ) -> Result<()>

fn GetDepthStencilSurface(&self) -> Result<IDirect3DSurface9>

fn BeginScene(&self) -> Result<()>

fn EndScene(&self) -> Result<()>

fn Clear( &self, count: u32, prects: *const D3DRECT, flags: u32, color: u32, z: f32, stencil: u32, ) -> Result<()>

fn SetTransform( &self, state: D3DTRANSFORMSTATETYPE, pmatrix: *const Matrix4x4, ) -> Result<()>

fn GetTransform( &self, state: D3DTRANSFORMSTATETYPE, pmatrix: *mut Matrix4x4, ) -> Result<()>

fn MultiplyTransform( &self, param0: D3DTRANSFORMSTATETYPE, param1: *const Matrix4x4, ) -> Result<()>

fn SetViewport(&self, pviewport: *const D3DVIEWPORT9) -> Result<()>

fn GetViewport(&self, pviewport: *mut D3DVIEWPORT9) -> Result<()>

fn SetMaterial(&self, pmaterial: *const D3DMATERIAL9) -> Result<()>

fn GetMaterial(&self, pmaterial: *mut D3DMATERIAL9) -> Result<()>

fn SetLight(&self, index: u32, param1: *const D3DLIGHT9) -> Result<()>

fn GetLight(&self, index: u32, param1: *mut D3DLIGHT9) -> Result<()>

fn LightEnable(&self, index: u32, enable: BOOL) -> Result<()>

fn GetLightEnable(&self, index: u32, penable: *mut BOOL) -> Result<()>

fn SetClipPlane(&self, index: u32, pplane: *const f32) -> Result<()>

fn GetClipPlane(&self, index: u32, pplane: *mut f32) -> Result<()>

fn SetRenderState(&self, state: D3DRENDERSTATETYPE, value: u32) -> Result<()>

fn GetRenderState( &self, state: D3DRENDERSTATETYPE, pvalue: *mut u32, ) -> Result<()>

fn CreateStateBlock( &self, type: D3DSTATEBLOCKTYPE, ) -> Result<IDirect3DStateBlock9>

fn BeginStateBlock(&self) -> Result<()>

fn EndStateBlock(&self) -> Result<IDirect3DStateBlock9>

fn SetClipStatus(&self, pclipstatus: *const D3DCLIPSTATUS9) -> Result<()>

fn GetClipStatus(&self, pclipstatus: *mut D3DCLIPSTATUS9) -> Result<()>

fn GetTexture(&self, stage: u32) -> Result<IDirect3DBaseTexture9>

fn SetTexture( &self, stage: u32, ptexture: Option<&IDirect3DBaseTexture9>, ) -> Result<()>

fn GetTextureStageState( &self, stage: u32, type: D3DTEXTURESTAGESTATETYPE, pvalue: *mut u32, ) -> Result<()>

fn SetTextureStageState( &self, stage: u32, type: D3DTEXTURESTAGESTATETYPE, value: u32, ) -> Result<()>

fn GetSamplerState( &self, sampler: u32, type: D3DSAMPLERSTATETYPE, pvalue: *mut u32, ) -> Result<()>

fn SetSamplerState( &self, sampler: u32, type: D3DSAMPLERSTATETYPE, value: u32, ) -> Result<()>

fn ValidateDevice(&self, pnumpasses: *mut u32) -> Result<()>

fn SetPaletteEntries( &self, palettenumber: u32, pentries: *const PALETTEENTRY, ) -> Result<()>

fn GetPaletteEntries( &self, palettenumber: u32, pentries: *mut PALETTEENTRY, ) -> Result<()>

fn SetCurrentTexturePalette(&self, palettenumber: u32) -> Result<()>

fn GetCurrentTexturePalette(&self, palettenumber: *mut u32) -> Result<()>

fn SetScissorRect(&self, prect: *const RECT) -> Result<()>

fn GetScissorRect(&self, prect: *mut RECT) -> Result<()>

fn SetSoftwareVertexProcessing(&self, bsoftware: BOOL) -> Result<()>

fn GetSoftwareVertexProcessing(&self) -> BOOL

fn SetNPatchMode(&self, nsegments: f32) -> Result<()>

fn GetNPatchMode(&self) -> f32

fn DrawPrimitive( &self, primitivetype: D3DPRIMITIVETYPE, startvertex: u32, primitivecount: u32, ) -> Result<()>

fn DrawIndexedPrimitive( &self, param0: D3DPRIMITIVETYPE, basevertexindex: i32, minvertexindex: u32, numvertices: u32, startindex: u32, primcount: u32, ) -> Result<()>

fn DrawPrimitiveUP( &self, primitivetype: D3DPRIMITIVETYPE, primitivecount: u32, pvertexstreamzerodata: *const c_void, vertexstreamzerostride: u32, ) -> Result<()>

fn DrawIndexedPrimitiveUP( &self, primitivetype: D3DPRIMITIVETYPE, minvertexindex: u32, numvertices: u32, primitivecount: u32, pindexdata: *const c_void, indexdataformat: D3DFORMAT, pvertexstreamzerodata: *const c_void, vertexstreamzerostride: u32, ) -> Result<()>

fn ProcessVertices( &self, srcstartindex: u32, destindex: u32, vertexcount: u32, pdestbuffer: Option<&IDirect3DVertexBuffer9>, pvertexdecl: Option<&IDirect3DVertexDeclaration9>, flags: u32, ) -> Result<()>

fn CreateVertexDeclaration( &self, pvertexelements: *const D3DVERTEXELEMENT9, ) -> Result<IDirect3DVertexDeclaration9>

fn SetVertexDeclaration( &self, pdecl: Option<&IDirect3DVertexDeclaration9>, ) -> Result<()>

fn GetVertexDeclaration(&self) -> Result<IDirect3DVertexDeclaration9>

fn SetFVF(&self, fvf: u32) -> Result<()>

fn GetFVF(&self, pfvf: *mut u32) -> Result<()>

fn CreateVertexShader( &self, pfunction: *const u32, ) -> Result<IDirect3DVertexShader9>

fn SetVertexShader( &self, pshader: Option<&IDirect3DVertexShader9>, ) -> Result<()>

fn GetVertexShader(&self) -> Result<IDirect3DVertexShader9>

fn SetVertexShaderConstantF( &self, startregister: u32, pconstantdata: *const f32, vector4fcount: u32, ) -> Result<()>

fn GetVertexShaderConstantF( &self, startregister: u32, pconstantdata: *mut f32, vector4fcount: u32, ) -> Result<()>

fn SetVertexShaderConstantI( &self, startregister: u32, pconstantdata: *const i32, vector4icount: u32, ) -> Result<()>

fn GetVertexShaderConstantI( &self, startregister: u32, pconstantdata: *mut i32, vector4icount: u32, ) -> Result<()>

fn SetVertexShaderConstantB( &self, startregister: u32, pconstantdata: *const BOOL, boolcount: u32, ) -> Result<()>

fn GetVertexShaderConstantB( &self, startregister: u32, pconstantdata: *mut BOOL, boolcount: u32, ) -> Result<()>

fn SetStreamSource( &self, streamnumber: u32, pstreamdata: Option<&IDirect3DVertexBuffer9>, offsetinbytes: u32, stride: u32, ) -> Result<()>

fn GetStreamSource( &self, streamnumber: u32, ppstreamdata: *mut Option<IDirect3DVertexBuffer9>, poffsetinbytes: *mut u32, pstride: *mut u32, ) -> Result<()>

fn SetStreamSourceFreq(&self, streamnumber: u32, setting: u32) -> Result<()>

fn GetStreamSourceFreq( &self, streamnumber: u32, psetting: *mut u32, ) -> Result<()>

fn SetIndices(&self, pindexdata: Option<&IDirect3DIndexBuffer9>) -> Result<()>

fn GetIndices(&self) -> Result<IDirect3DIndexBuffer9>

fn CreatePixelShader( &self, pfunction: *const u32, ) -> Result<IDirect3DPixelShader9>

fn SetPixelShader(&self, pshader: Option<&IDirect3DPixelShader9>) -> Result<()>

fn GetPixelShader(&self) -> Result<IDirect3DPixelShader9>

fn SetPixelShaderConstantF( &self, startregister: u32, pconstantdata: *const f32, vector4fcount: u32, ) -> Result<()>

fn GetPixelShaderConstantF( &self, startregister: u32, pconstantdata: *mut f32, vector4fcount: u32, ) -> Result<()>

fn SetPixelShaderConstantI( &self, startregister: u32, pconstantdata: *const i32, vector4icount: u32, ) -> Result<()>

fn GetPixelShaderConstantI( &self, startregister: u32, pconstantdata: *mut i32, vector4icount: u32, ) -> Result<()>

fn SetPixelShaderConstantB( &self, startregister: u32, pconstantdata: *const BOOL, boolcount: u32, ) -> Result<()>

fn GetPixelShaderConstantB( &self, startregister: u32, pconstantdata: *mut BOOL, boolcount: u32, ) -> Result<()>

fn DrawRectPatch( &self, handle: u32, pnumsegs: *const f32, prectpatchinfo: *const D3DRECTPATCH_INFO, ) -> Result<()>

fn DrawTriPatch( &self, handle: u32, pnumsegs: *const f32, ptripatchinfo: *const D3DTRIPATCH_INFO, ) -> Result<()>

fn DeletePatch(&self, handle: u32) -> Result<()>

fn CreateQuery(&self, type: D3DQUERYTYPE) -> Result<IDirect3DQuery9>

Object Safety§

This trait is not object safe.

Implementors§