Go to the documentation of this file.
29 #ifndef __D3D11RENDERWINDOW_H__
30 #define __D3D11RENDERWINDOW_H__
35 #if OGRE_PLATFORM == OGRE_PLATFORM_WINRT
36 #pragma warning( disable : 4451 ) // http://social.msdn.microsoft.com/Forums/en-US/winappswithnativecode/thread/314b5826-0a66-4307-abfe-87b8052c3c07/
39 # if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PC_APP)
40 # include <windows.ui.xaml.media.dxinterop.h>
57 void resize(
unsigned int width,
unsigned int height) {}
127 #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
141 void resize(
unsigned int width,
unsigned int height);
142 void setFullscreen(
bool fullScreen,
unsigned int width,
unsigned int height);
165 #if OGRE_PLATFORM == OGRE_PLATFORM_WINRT
190 #if (OGRE_PLATFORM == OGRE_PLATFORM_WINRT) && (OGRE_WINRT_TARGET_TYPE == DESKTOP_APP)
201 virtual void resize(
unsigned int width,
unsigned int height);
214 Windows::UI::Xaml::Media::ImageBrush^
mBrush;
218 #endif // (OGRE_PLATFORM == OGRE_PLATFORM_WINRT) && (OGRE_WINRT_TARGET_TYPE == DESKTOP_APP)
D3D11RenderWindowHwnd(D3D11Device &device, IDXGIFactoryN *pDXGIFactory)
DXGI_SWAP_CHAIN_DESC_N mSwapChainDesc
virtual void copyContentsToMemory(const PixelBox &dst, FrameBuffer buffer)
Overridden - see RenderTarget.
void _resizeSwapChainBuffers(unsigned width, unsigned height)
D3D11RenderWindowBase(D3D11Device &device, IDXGIFactoryN *pDXGIFactory)
void reposition(int left, int top)
Reposition the window.
~D3D11RenderWindowCoreWindow()
~D3D11RenderWindowImageSource()
HWND getWindowHandle() const
void getCustomAttribute(const String &name, void *pData)
Gets a custom (maybe platform-specific) attribute.
IDXGISwapChainN * mpSwapChain
ISurfaceImageSourceNative * mImageSourceNative
virtual HRESULT _createSwapChainImpl(IDXGIDeviceN *pDXGIDevice)
Windows::UI::Xaml::Media::Imaging::SurfaceImageSource mImageSource
void setFullscreen(bool fullScreen, unsigned int width, unsigned int height)
Alter fullscreen mode options.
void _createSizeDependedD3DResources()
bool _checkMultiSampleQuality(UINT SampleCount, UINT *outQuality, DXGI_FORMAT format)
D3D11RenderWindowCoreWindow(D3D11Device &device, IDXGIFactoryN *pDXGIFactory)
Manages the target rendering window.
virtual void update(bool swapBuffers=true)
Tells the target to update it's contents.
virtual void destroy(void)
Destroys the window.
bool isVisible() const
Indicates whether the window is visible (not minimized or obscured)
ID3D11RenderTargetView * mRenderTargetView
void _destroySizeDependedD3DResources()
virtual HRESULT _createSwapChainImpl(IDXGIDeviceN *pDXGIDevice)
void resize(unsigned int width, unsigned int height)
Alter the size of the window.
virtual void destroy(void)
Destroys the window.
virtual void swapBuffers()
Swaps the frame buffers to display the next frame.
DXGI_SWAP_CHAIN_DESC DXGI_SWAP_CHAIN_DESC_N
virtual void destroy(void)
Destroys the window.
void swapBuffers()
Swaps the frame buffers to display the next frame.
Windows::UI::Xaml::Media::ImageBrush getImageBrush() const
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
virtual void create(const String &name, unsigned width, unsigned height, bool fullScreen, const NameValuePairList *miscParams)
Platform::Agile< Windows::UI::Core::CoreWindow > mCoreWindow
IDXGIFactory1 IDXGIFactoryN
void windowMovedOrResized()
Notify that the window has been resized.
bool isClosed() const
Indicates whether the window has been closed by the user.
virtual void getCustomAttribute(const String &name, void *pData)
Gets a custom (maybe platform-specific) attribute.
Windows::UI::Xaml::Media::ImageBrush mBrush
void getCustomAttribute(const String &name, void *pData)
Gets a custom (maybe platform-specific) attribute.
void _finishSwitchingFullscreen()
Indicate that fullscreen / windowed switching has finished.
virtual void destroy(void)
Destroys the window.
virtual bool isVisible() const
Indicates whether the window is visible (not minimized or obscured)
virtual void create(const String &name, unsigned width, unsigned height, bool fullScreen, const NameValuePairList *miscParams)
virtual void create(const String &name, unsigned width, unsigned height, bool fullScreen, const NameValuePairList *miscParams)
IDXGIDevice1 IDXGIDeviceN
virtual void resize(unsigned int width, unsigned int height)
Alter the size of the window.
void setActive(bool state)
Used to set the active state of the render target.
void _createSizeDependedD3DResources()
bool _getSwitchingFullscreen() const
Are we in the middle of switching between fullscreen and windowed.
D3D11RenderWindowSwapChainBased(D3D11Device &device, IDXGIFactoryN *pDXGIFactory)
void setHidden(bool hidden)
Hide (or show) the window.
virtual void destroy(void)
Destroys the window.
bool mSwitchingFullscreen
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.
bool requiresTextureFlipping() const
ID3D11DepthStencilView * mDepthStencilView
DXGI_SWAP_CHAIN_DESC_N * getPresentationParameters(void)
Get the presentation parameters used with this window.
D3D11RenderWindowImageSource(D3D11Device &device, IDXGIFactoryN *pDXGIFactory)
bool isHidden() const
Indicates whether the window was set to hidden (not displayed)
virtual HRESULT _createSwapChainImpl(IDXGIDeviceN *pDXGIDevice)=0
void reposition(int left, int top)
Reposition the window.
void windowMovedOrResized()
Notify that the window has been resized.
ID3D11Texture2D * mpBackBuffer
void resize(unsigned int width, unsigned int height)
Alter the size of the window.
Windows::UI::Core::CoreWindow getCoreWindow() const
IDXGISwapChain IDXGISwapChainN
IDXGIDeviceN * _queryDxgiDevice()
virtual void create(const String &name, unsigned width, unsigned height, bool fullScreen, const NameValuePairList *miscParams)
IDXGIFactoryN * mpDXGIFactory
DXGI_SAMPLE_DESC mFSAAType
bool isVisible() const
Indicates whether the window is visible (not minimized or obscured)
~D3D11RenderWindowSwapChainBased()
void _updateViewportsDimensions()
unsigned int mVSyncInterval
void _createSizeDependedD3DResources()
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15