#include <KeosD3D9Window.h>
Inheritance diagram for Keos::CD3D9Window:

Public Member Functions | |
| CD3D9Window () | |
| Constructor. | |
| CD3D9Window (CD3D9 *pD3D9) | |
| Constructor. | |
| ~CD3D9Window () | |
| Destructor. | |
| void | Create (const String &strName, uint nWidth, uint nHeight, uint nColourDepth, bool bFullScreen) |
| See IRenderWindow. | |
| void | Destroy (void) |
| See IRenderWindow. | |
| bool | IsClosed (void) const |
| See IRenderWindow. | |
| void | Reposition (int nLeft, int nTop) |
| See IRenderWindow. | |
| void | Resize (uint nWidth, uint nHeight) |
| See IRenderWindow. | |
| void | SwapBuffers (bool bWaitForVSync) |
| See IRenderWindow. | |
| HWND | GetWindowHandle () const |
| Return the Win32 window handle. | |
| virtual void | WindowMovedOrResized (void) |
| Method for dealing with resize / move & 3d library. | |
| bool | IsReady () const |
| void | SetReady (bool bSet) |
| void | SetActive (bool bSet) |
| Used to set the active state of the render target. | |
| void | CreateD3DResources () |
| Create (or recreate) the D3D device for this window. | |
| virtual void | Update (void) |
| See IRenderTarget. | |
| D3DPRESENT_PARAMETERS * | GetPresentationParameters (void) |
| Get the presentation parameters used with this window. | |
Static Protected Member Functions | |
| static LRESULT CALLBACK | WndProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
| Window procedure callback. | |
Protected Attributes | |
| HWND | m_HWnd |
| Win32 Window handle. | |
| bool | m_bReady |
| Is ready i.e. available for update. | |
| bool | m_bClosed |
| Indicates whether the window has been closed by the user. | |
| bool | m_bSizing |
| Indicates whether the window is (re)sizing. | |
| CD3D9 * | m_pD3D9 |
| D3DPRESENT_PARAMETERS | m_d3dpp |
| LPDIRECT3DSURFACE9 | m_pRenderSurface |
| LPDIRECT3DSURFACE9 | m_pRenderZBuffer |
| D3DMULTISAMPLE_TYPE | m_FSAAType |
| DWORD | m_FSAAQuality |
| bool | m_bVSync |
Definition at line 34 of file KeosD3D9Window.h.
| Keos::CD3D9Window::CD3D9Window | ( | ) |
Constructor.
| Keos::CD3D9Window::CD3D9Window | ( | CD3D9 * | pD3D9 | ) |
Constructor.
| pD3D9 | CD3D9 object from CD3D9RenderSystem. |
Definition at line 36 of file KeosD3D9Window.cpp.
References Keos::IRenderTarget::m_bActive, m_bClosed, Keos::IRenderWindow::m_bIsFullScreen, m_bReady, m_bSizing, m_HWnd, and m_pD3D9.
| Keos::CD3D9Window::~CD3D9Window | ( | ) |
| void Keos::CD3D9Window::Create | ( | const String & | strName, | |
| uint | nWidth, | |||
| uint | nHeight, | |||
| uint | nColourDepth, | |||
| bool | bFullScreen | |||
| ) | [virtual] |
See IRenderWindow.
Implements Keos::IRenderWindow.
Definition at line 55 of file KeosD3D9Window.cpp.
References CreateD3DResources(), Destroy(), KEOS_D3D9_LIB, Keos::ILogger::Log(), Keos::IRenderTarget::m_bActive, Keos::IRenderWindow::m_bIsFullScreen, m_bVSync, m_FSAAQuality, m_FSAAType, m_HWnd, Keos::IRenderTarget::m_nColourDepth, Keos::IRenderTarget::m_nHeight, Keos::IRenderWindow::m_nLeft, Keos::IRenderWindow::m_nTop, Keos::IRenderTarget::m_nWidth, Keos::IRenderTarget::m_strName, and WndProc().
| void Keos::CD3D9Window::Destroy | ( | void | ) | [virtual] |
See IRenderWindow.
Implements Keos::IRenderWindow.
Definition at line 257 of file KeosD3D9Window.cpp.
References Keos::IRenderTarget::m_bActive, m_HWnd, m_pD3D9, m_pRenderSurface, m_pRenderZBuffer, and Keos::CD3D9::ReleaseDevice().
Referenced by Create(), CreateD3DResources(), WndProc(), and ~CD3D9Window().
| bool Keos::CD3D9Window::IsClosed | ( | void | ) | const [virtual] |
See IRenderWindow.
Implements Keos::IRenderWindow.
Definition at line 270 of file KeosD3D9Window.cpp.
References m_bClosed.
| void Keos::CD3D9Window::Reposition | ( | int | nLeft, | |
| int | nTop | |||
| ) | [virtual] |
See IRenderWindow.
Implements Keos::IRenderWindow.
Definition at line 276 of file KeosD3D9Window.cpp.
See IRenderWindow.
Implements Keos::IRenderWindow.
Definition at line 282 of file KeosD3D9Window.cpp.
References Keos::IRenderTarget::m_nHeight, and Keos::IRenderTarget::m_nWidth.
Referenced by WindowMovedOrResized().
| void Keos::CD3D9Window::SwapBuffers | ( | bool | bWaitForVSync | ) | [virtual] |
See IRenderWindow.
Implements Keos::IRenderWindow.
Definition at line 299 of file KeosD3D9Window.cpp.
References D3D9_EXCEPT, Keos::CSingleton< T >::Instance(), m_pD3D9, and Keos::CD3D9::pD3DDevice.
| HWND Keos::CD3D9Window::GetWindowHandle | ( | ) | const [inline] |
Return the Win32 window handle.
Definition at line 77 of file KeosD3D9Window.h.
References m_HWnd.
Referenced by WindowMovedOrResized().
| void Keos::CD3D9Window::WindowMovedOrResized | ( | void | ) | [virtual] |
Method for dealing with resize / move & 3d library.
Definition at line 291 of file KeosD3D9Window.cpp.
References GetWindowHandle(), and Resize().
Referenced by WndProc().
| bool Keos::CD3D9Window::IsReady | ( | ) | const [inline] |
| void Keos::CD3D9Window::SetReady | ( | bool | bSet | ) | [inline] |
| void Keos::CD3D9Window::SetActive | ( | bool | bSet | ) | [inline, virtual] |
Used to set the active state of the render target.
Reimplemented from Keos::IRenderTarget.
Definition at line 94 of file KeosD3D9Window.h.
References Keos::IRenderTarget::m_bActive.
| void Keos::CD3D9Window::CreateD3DResources | ( | ) |
Create (or recreate) the D3D device for this window.
Definition at line 159 of file KeosD3D9Window.cpp.
References D3D9_EXCEPT, Destroy(), Keos::IRenderWindow::m_bIsFullScreen, m_bVSync, m_d3dpp, m_FSAAQuality, m_FSAAType, m_HWnd, Keos::IRenderTarget::m_nColourDepth, Keos::IRenderTarget::m_nHeight, Keos::IRenderTarget::m_nWidth, m_pD3D9, m_pRenderSurface, m_pRenderZBuffer, Keos::CD3D9::pD3D, and Keos::CD3D9::pD3DDevice.
Referenced by Create().
| void Keos::CD3D9Window::Update | ( | void | ) | [virtual] |
See IRenderTarget.
Reimplemented from Keos::IRenderTarget.
Definition at line 319 of file KeosD3D9Window.cpp.
References Keos::CSingleton< T >::Instance(), Keos::CD3D9RenderSystem::IsDeviceLost(), m_pD3D9, m_pRenderSurface, m_pRenderZBuffer, Keos::CD3D9::pD3DDevice, Keos::CD3D9RenderSystem::RestoreLostDevice(), and Keos::IRenderTarget::Update().
| D3DPRESENT_PARAMETERS* Keos::CD3D9Window::GetPresentationParameters | ( | void | ) | [inline] |
Get the presentation parameters used with this window.
Definition at line 109 of file KeosD3D9Window.h.
References m_d3dpp.
| LRESULT Keos::CD3D9Window::WndProc | ( | HWND | hWnd, | |
| UINT | uMsg, | |||
| WPARAM | wParam, | |||
| LPARAM | lParam | |||
| ) | [static, protected] |
Window procedure callback.
Definition at line 363 of file KeosD3D9Window.cpp.
References Destroy(), Keos::CSingleton< T >::Instance(), Keos::IRenderTarget::m_bActive, m_bClosed, m_bSizing, and WindowMovedOrResized().
Referenced by Create().
HWND Keos::CD3D9Window::m_HWnd [protected] |
Win32 Window handle.
Definition at line 121 of file KeosD3D9Window.h.
Referenced by CD3D9Window(), Create(), CreateD3DResources(), Destroy(), and GetWindowHandle().
bool Keos::CD3D9Window::m_bReady [protected] |
Is ready i.e. available for update.
Definition at line 123 of file KeosD3D9Window.h.
Referenced by CD3D9Window(), IsReady(), and SetReady().
bool Keos::CD3D9Window::m_bClosed [protected] |
Indicates whether the window has been closed by the user.
Definition at line 125 of file KeosD3D9Window.h.
Referenced by CD3D9Window(), IsClosed(), and WndProc().
bool Keos::CD3D9Window::m_bSizing [protected] |
Indicates whether the window is (re)sizing.
Definition at line 127 of file KeosD3D9Window.h.
Referenced by CD3D9Window(), and WndProc().
CD3D9* Keos::CD3D9Window::m_pD3D9 [protected] |
Definition at line 130 of file KeosD3D9Window.h.
Referenced by CD3D9Window(), CreateD3DResources(), Destroy(), SwapBuffers(), and Update().
D3DPRESENT_PARAMETERS Keos::CD3D9Window::m_d3dpp [protected] |
Definition at line 131 of file KeosD3D9Window.h.
Referenced by CreateD3DResources(), and GetPresentationParameters().
LPDIRECT3DSURFACE9 Keos::CD3D9Window::m_pRenderSurface [protected] |
Definition at line 132 of file KeosD3D9Window.h.
Referenced by CreateD3DResources(), Destroy(), and Update().
LPDIRECT3DSURFACE9 Keos::CD3D9Window::m_pRenderZBuffer [protected] |
Definition at line 133 of file KeosD3D9Window.h.
Referenced by CreateD3DResources(), Destroy(), and Update().
D3DMULTISAMPLE_TYPE Keos::CD3D9Window::m_FSAAType [protected] |
DWORD Keos::CD3D9Window::m_FSAAQuality [protected] |
bool Keos::CD3D9Window::m_bVSync [protected] |
1.5.1-p1