IDirect3DDevice9

Struct IDirect3DDevice9 

Source
#[repr(C)]
pub struct IDirect3DDevice9 { pub lpVtbl: *const IDirect3DDevice9Vtbl, }

Fields§

§lpVtbl: *const IDirect3DDevice9Vtbl

Implementations§

Source§

impl IDirect3DDevice9

Source

pub unsafe fn TestCooperativeLevel(&self) -> HRESULT

Source

pub unsafe fn GetAvailableTextureMem(&self) -> UINT

Source

pub unsafe fn EvictManagedResources(&self) -> HRESULT

Source

pub unsafe fn GetDirect3D(&self, ppD3D9: *mut *mut IDirect3D9) -> HRESULT

Source

pub unsafe fn GetDeviceCaps(&self, pCaps: *mut D3DCAPS9) -> HRESULT

Source

pub unsafe fn GetDisplayMode( &self, iSwapChain: UINT, pMode: *mut D3DDISPLAYMODE, ) -> HRESULT

Source

pub unsafe fn GetCreationParameters( &self, pParameters: *mut D3DDEVICE_CREATION_PARAMETERS, ) -> HRESULT

Source

pub unsafe fn SetCursorProperties( &self, XHotSpot: UINT, YHotSpot: UINT, pCursorBitmap: *mut IDirect3DSurface9, ) -> HRESULT

Source

pub unsafe fn SetCursorPosition(&self, X: INT, Y: INT, Flags: DWORD)

Source

pub unsafe fn ShowCursor(&self, bShow: BOOL) -> BOOL

Source

pub unsafe fn CreateAdditionalSwapChain( &self, pPresentationParameters: *mut D3DPRESENT_PARAMETERS, pSwapChain: *mut *mut IDirect3DSwapChain9, ) -> HRESULT

Source

pub unsafe fn GetSwapChain( &self, iSwapChain: UINT, pSwapChain: *mut *mut IDirect3DSwapChain9, ) -> HRESULT

Source

pub unsafe fn GetNumberOfSwapChains(&self) -> UINT

Source

pub unsafe fn Reset( &self, pPresentationParameters: *mut D3DPRESENT_PARAMETERS, ) -> HRESULT

Source

pub unsafe fn Present( &self, pSourceRect: *const RECT, pDestRect: *const RECT, hDestWindowOverride: HWND, pDirtyRegion: *const RGNDATA, ) -> HRESULT

Source

pub unsafe fn GetBackBuffer( &self, iSwapChain: UINT, iBackBuffer: UINT, Type: D3DBACKBUFFER_TYPE, ppBackBuffer: *mut *mut IDirect3DSurface9, ) -> HRESULT

Source

pub unsafe fn GetRasterStatus( &self, iSwapChain: UINT, pRasterStatus: *mut D3DRASTER_STATUS, ) -> HRESULT

Source

pub unsafe fn SetDialogBoxMode(&self, bEnableDialogs: BOOL) -> HRESULT

Source

pub unsafe fn SetGammaRamp( &self, iSwapChain: UINT, Flags: DWORD, pRamp: *const D3DGAMMARAMP, )

Source

pub unsafe fn GetGammaRamp(&self, iSwapChain: UINT, pRamp: *mut D3DGAMMARAMP)

Source

pub unsafe fn CreateTexture( &self, Width: UINT, Height: UINT, Levels: UINT, Usage: DWORD, Format: D3DFORMAT, Pool: D3DPOOL, ppTexture: *mut *mut IDirect3DTexture9, pSharedHandle: *mut HANDLE, ) -> HRESULT

Source

pub unsafe fn CreateVolumeTexture( &self, Width: UINT, Height: UINT, Depth: UINT, Levels: UINT, Usage: DWORD, Format: D3DFORMAT, Pool: D3DPOOL, ppVolumeTexture: *mut *mut IDirect3DVolumeTexture9, pSharedHandle: *mut HANDLE, ) -> HRESULT

Source

pub unsafe fn CreateCubeTexture( &self, EdgeLength: UINT, Levels: UINT, Usage: DWORD, Format: D3DFORMAT, Pool: D3DPOOL, ppCubeTexture: *mut *mut IDirect3DCubeTexture9, pSharedHandle: *mut HANDLE, ) -> HRESULT

Source

pub unsafe fn CreateVertexBuffer( &self, Length: UINT, Usage: DWORD, FVF: DWORD, Pool: D3DPOOL, ppVertexBuffer: *mut *mut IDirect3DVertexBuffer9, pSharedHandle: *mut HANDLE, ) -> HRESULT

Source

pub unsafe fn CreateIndexBuffer( &self, Length: UINT, Usage: DWORD, Format: D3DFORMAT, Pool: D3DPOOL, ppIndexBuffer: *mut *mut IDirect3DIndexBuffer9, pSharedHandle: *mut HANDLE, ) -> HRESULT

Source

pub unsafe fn CreateRenderTarget( &self, Width: UINT, Height: UINT, Format: D3DFORMAT, MultiSample: D3DMULTISAMPLE_TYPE, MultisampleQuality: DWORD, Lockable: BOOL, ppSurface: *mut *mut IDirect3DSurface9, pSharedHandle: *mut HANDLE, ) -> HRESULT

Source

pub unsafe fn CreateDepthStencilSurface( &self, Width: UINT, Height: UINT, Format: D3DFORMAT, MultiSample: D3DMULTISAMPLE_TYPE, MultisampleQuality: DWORD, Discard: BOOL, ppSurface: *mut *mut IDirect3DSurface9, pSharedHandle: *mut HANDLE, ) -> HRESULT

Source

pub unsafe fn UpdateSurface( &self, pSourceSurface: *mut IDirect3DSurface9, pSourceRect: *const RECT, pDestinationSurface: *mut IDirect3DSurface9, pDestPoint: *const POINT, ) -> HRESULT

Source

pub unsafe fn UpdateTexture( &self, pSourceTexture: *mut IDirect3DBaseTexture9, pDestinationTexture: *mut IDirect3DBaseTexture9, ) -> HRESULT

Source

pub unsafe fn GetRenderTargetData( &self, pRenderTarget: *mut IDirect3DSurface9, pDestSurface: *mut IDirect3DSurface9, ) -> HRESULT

Source

pub unsafe fn GetFrontBufferData( &self, iSwapChain: UINT, pDestSurface: *mut IDirect3DSurface9, ) -> HRESULT

Source

pub unsafe fn StretchRect( &self, pSourceSurface: *mut IDirect3DSurface9, pSourceRect: *const RECT, pDestSurface: *mut IDirect3DSurface9, pDestRect: *const RECT, Filter: D3DTEXTUREFILTERTYPE, ) -> HRESULT

Source

pub unsafe fn ColorFill( &self, pSurface: *mut IDirect3DSurface9, pRect: *const RECT, color: D3DCOLOR, ) -> HRESULT

Source

pub unsafe fn CreateOffscreenPlainSurface( &self, Width: UINT, Height: UINT, Format: D3DFORMAT, Pool: D3DPOOL, ppSurface: *mut *mut IDirect3DSurface9, pSharedHandle: *mut HANDLE, ) -> HRESULT

Source

pub unsafe fn SetRenderTarget( &self, RenderTargetIndex: DWORD, pRenderTarget: *mut IDirect3DSurface9, ) -> HRESULT

Source

pub unsafe fn GetRenderTarget( &self, RenderTargetIndex: DWORD, ppRenderTarget: *mut *mut IDirect3DSurface9, ) -> HRESULT

Source

pub unsafe fn SetDepthStencilSurface( &self, pNewZStencil: *mut IDirect3DSurface9, ) -> HRESULT

Source

pub unsafe fn GetDepthStencilSurface( &self, ppZStencilSurface: *mut *mut IDirect3DSurface9, ) -> HRESULT

Source

pub unsafe fn BeginScene(&self) -> HRESULT

Source

pub unsafe fn EndScene(&self) -> HRESULT

Source

pub unsafe fn Clear( &self, Count: DWORD, pRects: *const D3DRECT, Flags: DWORD, Color: D3DCOLOR, Z: FLOAT, Stencil: DWORD, ) -> HRESULT

Source

pub unsafe fn SetTransform( &self, State: D3DTRANSFORMSTATETYPE, pMatrix: *const D3DMATRIX, ) -> HRESULT

Source

pub unsafe fn GetTransform( &self, State: D3DTRANSFORMSTATETYPE, pMatrix: *mut D3DMATRIX, ) -> HRESULT

Source

pub unsafe fn MultiplyTransform( &self, arg1: D3DTRANSFORMSTATETYPE, arg2: *const D3DMATRIX, ) -> HRESULT

Source

pub unsafe fn SetViewport(&self, pViewport: *const D3DVIEWPORT9) -> HRESULT

Source

pub unsafe fn GetViewport(&self, pViewport: *mut D3DVIEWPORT9) -> HRESULT

Source

pub unsafe fn SetMaterial(&self, pMaterial: *const D3DMATERIAL9) -> HRESULT

Source

pub unsafe fn GetMaterial(&self, pMaterial: *mut D3DMATERIAL9) -> HRESULT

Source

pub unsafe fn SetLight(&self, Index: DWORD, arg1: *const D3DLIGHT9) -> HRESULT

Source

pub unsafe fn GetLight(&self, Index: DWORD, arg1: *mut D3DLIGHT9) -> HRESULT

Source

pub unsafe fn LightEnable(&self, Index: DWORD, Enable: BOOL) -> HRESULT

Source

pub unsafe fn GetLightEnable(&self, Index: DWORD, pEnable: *mut BOOL) -> HRESULT

Source

pub unsafe fn SetClipPlane(&self, Index: DWORD, pPlane: *const FLOAT) -> HRESULT

Source

pub unsafe fn GetClipPlane(&self, Index: DWORD, pPlane: *mut FLOAT) -> HRESULT

Source

pub unsafe fn SetRenderState( &self, State: D3DRENDERSTATETYPE, Value: DWORD, ) -> HRESULT

Source

pub unsafe fn GetRenderState( &self, State: D3DRENDERSTATETYPE, pValue: *mut DWORD, ) -> HRESULT

Source

pub unsafe fn CreateStateBlock( &self, Type: D3DSTATEBLOCKTYPE, ppSB: *mut *mut IDirect3DStateBlock9, ) -> HRESULT

Source

pub unsafe fn BeginStateBlock(&self) -> HRESULT

Source

pub unsafe fn EndStateBlock( &self, ppSB: *mut *mut IDirect3DStateBlock9, ) -> HRESULT

Source

pub unsafe fn SetClipStatus( &self, pClipStatus: *const D3DCLIPSTATUS9, ) -> HRESULT

Source

pub unsafe fn GetClipStatus(&self, pClipStatus: *mut D3DCLIPSTATUS9) -> HRESULT

Source

pub unsafe fn GetTexture( &self, Stage: DWORD, ppTexture: *mut *mut IDirect3DBaseTexture9, ) -> HRESULT

Source

pub unsafe fn SetTexture( &self, Stage: DWORD, pTexture: *mut IDirect3DBaseTexture9, ) -> HRESULT

Source

pub unsafe fn GetTextureStageState( &self, Stage: DWORD, Type: D3DTEXTURESTAGESTATETYPE, pValue: *mut DWORD, ) -> HRESULT

Source

pub unsafe fn SetTextureStageState( &self, Stage: DWORD, Type: D3DTEXTURESTAGESTATETYPE, Value: DWORD, ) -> HRESULT

Source

pub unsafe fn GetSamplerState( &self, Sampler: DWORD, Type: D3DSAMPLERSTATETYPE, pValue: *mut DWORD, ) -> HRESULT

Source

pub unsafe fn SetSamplerState( &self, Sampler: DWORD, Type: D3DSAMPLERSTATETYPE, Value: DWORD, ) -> HRESULT

Source

pub unsafe fn ValidateDevice(&self, pNumPasses: *mut DWORD) -> HRESULT

Source

pub unsafe fn SetPaletteEntries( &self, PaletteNumber: UINT, pEntries: *const PALETTEENTRY, ) -> HRESULT

Source

pub unsafe fn GetPaletteEntries( &self, PaletteNumber: UINT, pEntries: *mut PALETTEENTRY, ) -> HRESULT

Source

pub unsafe fn SetCurrentTexturePalette(&self, PaletteNumber: UINT) -> HRESULT

Source

pub unsafe fn GetCurrentTexturePalette( &self, PaletteNumber: *mut UINT, ) -> HRESULT

Source

pub unsafe fn SetScissorRect(&self, pRect: *const RECT) -> HRESULT

Source

pub unsafe fn GetScissorRect(&self, pRect: *mut RECT) -> HRESULT

Source

pub unsafe fn SetSoftwareVertexProcessing(&self, bSoftware: BOOL) -> HRESULT

Source

pub unsafe fn GetSoftwareVertexProcessing(&self) -> BOOL

Source

pub unsafe fn SetNPatchMode(&self, nSegments: FLOAT) -> HRESULT

Source

pub unsafe fn GetNPatchMode(&self) -> FLOAT

Source

pub unsafe fn DrawPrimitive( &self, PrimitiveType: D3DPRIMITIVETYPE, StartVertex: UINT, PrimitiveCount: UINT, ) -> HRESULT

Source

pub unsafe fn DrawIndexedPrimitive( &self, arg1: D3DPRIMITIVETYPE, BaseVertexIndex: INT, MinVertexIndex: UINT, NumVertices: UINT, startIndex: UINT, primCount: UINT, ) -> HRESULT

Source

pub unsafe fn DrawPrimitiveUP( &self, PrimitiveType: D3DPRIMITIVETYPE, PrimitiveCount: UINT, pVertexStreamZeroData: *const VOID, VertexStreamZeroStride: UINT, ) -> HRESULT

Source

pub unsafe fn DrawIndexedPrimitiveUP( &self, PrimitiveType: D3DPRIMITIVETYPE, MinVertexIndex: UINT, NumVertices: UINT, PrimitiveCount: UINT, pIndexData: *const VOID, IndexDataFormat: D3DFORMAT, pVertexStreamZeroData: *const VOID, VertexStreamZeroStride: UINT, ) -> HRESULT

Source

pub unsafe fn ProcessVertices( &self, SrcStartIndex: UINT, DestIndex: UINT, VertexCount: UINT, pDestBuffer: *mut IDirect3DVertexBuffer9, pVertexDecl: *mut IDirect3DVertexDeclaration9, Flags: DWORD, ) -> HRESULT

Source

pub unsafe fn CreateVertexDeclaration( &self, pVertexElements: *const D3DVERTEXELEMENT9, ppDecl: *mut *mut IDirect3DVertexDeclaration9, ) -> HRESULT

Source

pub unsafe fn SetVertexDeclaration( &self, pDecl: *mut IDirect3DVertexDeclaration9, ) -> HRESULT

Source

pub unsafe fn GetVertexDeclaration( &self, ppDecl: *mut *mut IDirect3DVertexDeclaration9, ) -> HRESULT

Source

pub unsafe fn SetFVF(&self, FVF: DWORD) -> HRESULT

Source

pub unsafe fn GetFVF(&self, pFVF: *mut DWORD) -> HRESULT

Source

pub unsafe fn CreateVertexShader( &self, pFunction: *const DWORD, ppShader: *mut *mut IDirect3DVertexShader9, ) -> HRESULT

Source

pub unsafe fn SetVertexShader( &self, pShader: *mut IDirect3DVertexShader9, ) -> HRESULT

Source

pub unsafe fn GetVertexShader( &self, ppShader: *mut *mut IDirect3DVertexShader9, ) -> HRESULT

Source

pub unsafe fn SetVertexShaderConstantF( &self, StartRegister: UINT, pConstantData: *const FLOAT, Vector4fCount: UINT, ) -> HRESULT

Source

pub unsafe fn GetVertexShaderConstantF( &self, StartRegister: UINT, pConstantData: *mut FLOAT, Vector4fCount: UINT, ) -> HRESULT

Source

pub unsafe fn SetVertexShaderConstantI( &self, StartRegister: UINT, pConstantData: *const INT, Vector4iCount: UINT, ) -> HRESULT

Source

pub unsafe fn GetVertexShaderConstantI( &self, StartRegister: UINT, pConstantData: *mut INT, Vector4iCount: UINT, ) -> HRESULT

Source

pub unsafe fn SetVertexShaderConstantB( &self, StartRegister: UINT, pConstantData: *const BOOL, BoolCount: UINT, ) -> HRESULT

Source

pub unsafe fn GetVertexShaderConstantB( &self, StartRegister: UINT, pConstantData: *mut BOOL, BoolCount: UINT, ) -> HRESULT

Source

pub unsafe fn SetStreamSource( &self, StreamNumber: UINT, pStreamData: *mut IDirect3DVertexBuffer9, OffsetInBytes: UINT, Stride: UINT, ) -> HRESULT

Source

pub unsafe fn GetStreamSource( &self, StreamNumber: UINT, ppStreamData: *mut *mut IDirect3DVertexBuffer9, pOffsetInBytes: *mut UINT, pStride: *mut UINT, ) -> HRESULT

Source

pub unsafe fn SetStreamSourceFreq( &self, StreamNumber: UINT, Setting: UINT, ) -> HRESULT

Source

pub unsafe fn GetStreamSourceFreq( &self, StreamNumber: UINT, pSetting: *mut UINT, ) -> HRESULT

Source

pub unsafe fn SetIndices( &self, pIndexData: *mut IDirect3DIndexBuffer9, ) -> HRESULT

Source

pub unsafe fn GetIndices( &self, ppIndexData: *mut *mut IDirect3DIndexBuffer9, ) -> HRESULT

Source

pub unsafe fn CreatePixelShader( &self, pFunction: *const DWORD, ppShader: *mut *mut IDirect3DPixelShader9, ) -> HRESULT

Source

pub unsafe fn SetPixelShader( &self, pShader: *mut IDirect3DPixelShader9, ) -> HRESULT

Source

pub unsafe fn GetPixelShader( &self, ppShader: *mut *mut IDirect3DPixelShader9, ) -> HRESULT

Source

pub unsafe fn SetPixelShaderConstantF( &self, StartRegister: UINT, pConstantData: *const FLOAT, Vector4fCount: UINT, ) -> HRESULT

Source

pub unsafe fn GetPixelShaderConstantF( &self, StartRegister: UINT, pConstantData: *mut FLOAT, Vector4fCount: UINT, ) -> HRESULT

Source

pub unsafe fn SetPixelShaderConstantI( &self, StartRegister: UINT, pConstantData: *const INT, Vector4iCount: UINT, ) -> HRESULT

Source

pub unsafe fn GetPixelShaderConstantI( &self, StartRegister: UINT, pConstantData: *mut INT, Vector4iCount: UINT, ) -> HRESULT

Source

pub unsafe fn SetPixelShaderConstantB( &self, StartRegister: UINT, pConstantData: *const BOOL, BoolCount: UINT, ) -> HRESULT

Source

pub unsafe fn GetPixelShaderConstantB( &self, StartRegister: UINT, pConstantData: *mut BOOL, BoolCount: UINT, ) -> HRESULT

Source

pub unsafe fn DrawRectPatch( &self, Handle: UINT, pNumSegs: *const FLOAT, pRectPatchInfo: *const D3DRECTPATCH_INFO, ) -> HRESULT

Source

pub unsafe fn DrawTriPatch( &self, Handle: UINT, pNumSegs: *const FLOAT, pTriPatchInfo: *const D3DTRIPATCH_INFO, ) -> HRESULT

Source

pub unsafe fn DeletePatch(&self, Handle: UINT) -> HRESULT

Source

pub unsafe fn CreateQuery( &self, Type: D3DQUERYTYPE, ppQuery: *mut *mut IDirect3DQuery9, ) -> HRESULT

Methods from Deref<Target = IUnknown>§

Source

pub unsafe fn QueryInterface( &self, riid: REFIID, ppvObject: *mut *mut c_void, ) -> HRESULT

Source

pub unsafe fn AddRef(&self) -> ULONG

Source

pub unsafe fn Release(&self) -> ULONG

Trait Implementations§

Source§

impl Deref for IDirect3DDevice9

Source§

type Target = IUnknown

The resulting type after dereferencing.
Source§

fn deref(&self) -> &IUnknown

Dereferences the value.
Source§

impl Interface for IDirect3DDevice9

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.