28 #ifndef __D3D10RENDERWINDOW_H__
29 #define __D3D10RENDERWINDOW_H__
48 void create(
const String& name,
unsigned int width,
unsigned int height,
50 void setFullscreen(
bool fullScreen,
unsigned int width,
unsigned int height);
55 void resize(
unsigned int width,
unsigned int height);
Manages the target rendering window.
void windowMovedOrResized()
Notify that the window has been resized.
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
void destroy(void)
Destroys the window.
void destroyD3DResources()
Destroy the D3D device or SwapChain for this window.
void create(const String &name, unsigned int width, unsigned int height, bool fullScreen, const NameValuePairList *miscParams)
Creates & displays the new window.
HWND getWindowHandle() const
IDXGISwapChain * mpSwapChain
bool _checkMultiSampleQuality(UINT SampleCount, UINT *outQuality, DXGI_FORMAT format)
D3D10RenderWindow(HINSTANCE instance, D3D10Device &device)
Constructor.
ID3D10Texture2D * mpBackBuffer
void update(bool swap)
Tells the target to update it's contents.
void resize(unsigned int width, unsigned int height)
Alter the size of the window.
bool isClosed() const
Indicates whether the window has been closed by the user.
void swapBuffers(bool waitForVSync=true)
Swaps the frame buffers to display the next frame.
DXGI_SWAP_CHAIN_DESC md3dpp
virtual void copyContentsToMemory(const PixelBox &dst, FrameBuffer buffer)
Overridden - see RenderTarget.
void getCustomAttribute(const String &name, void *pData)
Gets a custom (maybe platform-specific) attribute.
bool _getSwitchingFullscreen() const
Accessor for render surface.
unsigned int mVSyncInterval
DXGI_SWAP_CHAIN_DESC * getPresentationParameters(void)
Get the presentation parameters used with this window.
ID3D10RenderTargetView * mRenderTargetView
DXGI_SAMPLE_DESC mFSAAType
void reposition(int left, int top)
Reposition the window.
ID3D10DepthStencilView * mDepthStencilView
bool isVisible() const
Indicates whether the window is visible (not minimized or obscured)
bool requiresTextureFlipping() const
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.
void createD3DResources()
Create (or recreate) the D3D device or SwapChain for this window.
void setFullscreen(bool fullScreen, unsigned int width, unsigned int height)
Alter fullscreen mode options.
bool mSwitchingFullscreen
void _finishSwitchingFullscreen()
Indicate that fullscreen / windowed switching has finished.