28 #ifndef __D3D9RENDERWINDOW_H__
29 #define __D3D9RENDERWINDOW_H__
46 void create (
const String& name,
unsigned int width,
unsigned int height,
48 void setFullscreen (
bool fullScreen,
unsigned int width,
unsigned int height);
50 bool isActive ()
const;
51 bool isVisible ()
const;
55 void setHidden (
bool hidden);
56 void setVSyncEnabled (
bool vsync);
57 bool isVSyncEnabled ()
const;
58 void setVSyncInterval (
unsigned int interval);
59 unsigned int getVSyncInterval ()
const;
60 void reposition (
int left,
int top);
61 void resize (
unsigned int width,
unsigned int height);
64 IDirect3DDevice9* getD3D9Device ();
68 void getCustomAttribute (
const String& name,
void* pData);
72 void copyContentsToMemory (
const PixelBox &dst, FrameBuffer buffer);
76 void windowMovedOrResized ();
79 void buildPresentParameters (D3DPRESENT_PARAMETERS* presentParams);
86 void _updateViewport(
Viewport* viewport,
bool updateStatistics =
true);
92 IDirect3DSurface9* getRenderSurface();
95 bool _getSwitchingFullscreen()
const;
98 void _finishSwitchingFullscreen();
101 bool isDepthBuffered()
const;
104 bool isNvPerfHUDEnable()
const;
107 bool _validateDevice();
109 void adjustWindow(
unsigned int clientWidth,
unsigned int clientHeight,
110 unsigned int* winWidth,
unsigned int* winHeight);
114 void updateWindowRect();
117 DWORD
getWindowStyle(
bool fullScreen)
const {
if (fullScreen)
return mFullscreenWinStyle;
return mWindowedWinStyle; }
Manages the target rendering window.
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
bool requiresTextureFlipping() const
HWND getWindowHandle() const
bool mSwitchingFullscreen
bool isHidden() const
Indicates whether the window was set to hidden (not displayed)
DWORD getWindowStyle(bool fullScreen) const
Return the target window style depending on the fullscreen parameter.
bool isClosed() const
Indicates whether the window has been closed by the user.
unsigned int mVSyncInterval
High level interface of Direct3D9 Device.
DWORD mFullscreenWinStyle
An abstraction of a viewport, i.e.
unsigned int mDesiredHeight
unsigned int mDesiredWidth
D3DMULTISAMPLE_TYPE mFSAAType
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.