DirectX9Context
Description
- Derived from
-
GraphicsContext abstract
Full source code is included in the Tinman 3D SDK download. |
An implementation of the IGraphicsContext interface for DirectX 9.
You can use the DirectX9ContextFactory object to configure and create an instance of this class. Also you can use the ForDevice method to wrap an existing IDirect3DDevice9Ex*
COM pointer.
The returned INativeHandles can be interpreted as follows:
-
LowLevel.IsWindows ==
true
:-
DirectX9Context:
TheIDirect3DDevice9Ex*
COM pointer (do not callRelease
on it). -
IIndexBuffer (created by IGraphicsContext.BufferFactory):
TheIDirect3DIndexBuffer9*
COM pointer (do not callRelease
on it). -
IVertexBuffer (created by IGraphicsContext.BufferFactory):
TheIDirect3DVertexBuffer9*
COM pointer (do not callRelease
on it). -
ITexture2D (created by IGraphicsContext.TextureFactory:
TheIDirect3DTexture9*
COM pointer (do not callRelease
on it). -
ITextureCube (created by IGraphicsContext.CreateTextureCube):
TheIDirect3DCubeTexture9*
COM pointer (do not callRelease
on it). -
IRenderTarget (created by IGraphicsContext.CreateRenderTarget or IGraphicsContext.CreateSwapChain):
TheIDirect3DSurface9*
COM pointer of the backbuffer surface (do not callRelease
on it).
-
Using Direct3D 9 imposes the following restrictions:
-
Line feature level LineFeatureLevel.DX10 is not available.
-
Terrain feature level TerrainFeatureLevel.DX10 is not available.
-
Terrain feature level TerrainFeatureLevel.DX11 is not available.
-
Terrain feature level TerrainFeatureLevel.DX12 is not available.
-
RenderStageFlags.OrderIndependentTransparency is not available when using multi-sampling (see IGraphicsContext.IsMultiSample).
Public / Constructors
ForDevice
Creates a new instance of DirectX9Context for the given native handle.
- RenderException
-
If a graphics subsystem error has occurred.