28 #ifndef __D3D9Device_H__
29 #define __D3D9Device_H__
36 class D3D9RenderWindow;
37 class D3D9DeviceManager;
56 IDirect3DDevice9* getD3D9Device ();
58 UINT getAdapterNumber ()
const;
59 D3DDEVTYPE getDeviceType ()
const;
60 bool isMultihead ()
const;
61 bool isAutoDepthStencil ()
const;
62 bool isFullScreen ()
const;
64 const D3DCAPS9& getD3D9DeviceCaps ()
const;
65 D3DFORMAT getBackBufferFormat ()
const;
75 uint getRenderWindowCount ()
const;
81 void clearDeviceStreams ();
130 void updatePresentationParameters ();
131 void updateRenderWindowsIndices ();
133 void createD3D9Device ();
134 void releaseD3D9Device ();
137 void setupDeviceStates ();
138 void notifyDeviceLost ();
140 void validateFocusWindow ();
146 void setSharedWindowHandle (HWND hSharedHWND);
static HWND msSharedFocusWindow
uint adapterOrdinalInGroupIndex
D3DPRESENT_PARAMETERS presentParameters
IDirect3DDevice9 * mDevice
UINT mPresentationParamsCount
Device manager interface.
D3D9DeviceManager * mDeviceManager
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
uint presentParametersIndex
map< D3D9RenderWindow *, RenderWindowResources * >::type RenderWindowToResourcesMap
RenderWindowToResourcesMap::iterator RenderWindowToResourcesIterator
D3DDEVICE_CREATION_PARAMETERS mCreationParams
Implementation of DirectX9 as a rendering system.
High level interface of Direct3D9 Device.
uint getLastPresentFrame() const
bool mD3D9DeviceCapsValid
RenderWindowToResourcesMap mMapRenderWindowToResources
IDirect3DSurface9 * backBuffer
IDirect3DSwapChain9 * swapChain
IDirect3DSurface9 * depthBuffer
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.
D3DPRESENT_PARAMETERS * mPresentationParams