28 #ifndef __D3D9RENDERWINDOW_H__
29 #define __D3D9RENDERWINDOW_H__
50 void create (
const String& name,
unsigned int width,
unsigned int height,
52 void setFullscreen (
bool fullScreen,
unsigned int width,
unsigned int height);
54 bool isActive ()
const;
55 bool isVisible ()
const;
59 void setHidden (
bool hidden);
60 void setVSyncEnabled (
bool vsync);
61 bool isVSyncEnabled ()
const;
62 void setVSyncInterval (
unsigned int interval);
63 unsigned int getVSyncInterval ()
const;
64 void reposition (
int left,
int top);
65 void resize (
unsigned int width,
unsigned int height);
66 void swapBuffers (
bool waitForVSync =
true );
68 IDirect3DDevice9* getD3D9Device ();
72 void getCustomAttribute (
const String& name,
void* pData);
76 void copyContentsToMemory (
const PixelBox &dst, FrameBuffer buffer);
80 void windowMovedOrResized ();
83 void buildPresentParameters (D3DPRESENT_PARAMETERS* presentParams);
90 void _updateViewport(
Viewport* viewport,
bool updateStatistics =
true);
96 IDirect3DSurface9* getRenderSurface();
99 bool _getSwitchingFullscreen()
const;
102 void _finishSwitchingFullscreen();
105 bool isDepthBuffered()
const;
108 bool isNvPerfHUDEnable()
const;
111 bool _validateDevice();
113 void adjustWindow(
unsigned int clientWidth,
unsigned int clientHeight,
114 unsigned int* winWidth,
unsigned int* winHeight);
118 void updateWindowRect();
121 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.