From 5677bdafc48e6231a67c01e5d894ed657aa0ecf6 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 30 Mar 2018 09:52:13 -0700 Subject: Implemented initialization in fullscreen mode on Win32 --- Graphics/GraphicsEngine/interface/GraphicsTypes.h | 27 +++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/GraphicsTypes.h b/Graphics/GraphicsEngine/interface/GraphicsTypes.h index 574e4c12..59bd356c 100644 --- a/Graphics/GraphicsEngine/interface/GraphicsTypes.h +++ b/Graphics/GraphicsEngine/interface/GraphicsTypes.h @@ -986,8 +986,11 @@ namespace Diligent /// Display format TEXTURE_FORMAT Format = TEX_FORMAT_UNKNOWN; - /// Display refresh rate - double RefreshRate = 0.0; + /// Refresh rate numerator + Uint32 RefreshRateNumerator = 0; + + /// Refresh rate denominator + Uint32 RefreshRateDenominator = 0; /// The scanline drawing mode. SCALING Scaling = SCALING_UNSPECIFIED; @@ -1036,6 +1039,26 @@ namespace Diligent {} }; + /// Full screen mode description + /// \sa DXGI_SWAP_CHAIN_FULLSCREEN_DESC structure on MSDN, + struct FullScreenModeDesc + { + /// A Boolean value that specifies whether the swap chain is in fullscreen mode. + Bool Fullscreen = False; + + /// Refresh rate numerator + Uint32 RefreshRateNumerator = 0; + + /// Refresh rate denominator + Uint32 RefreshRateDenominator = 0; + + /// The scanline drawing mode. + DisplayModeAttribs::SCALING Scaling = DisplayModeAttribs::SCALING_UNSPECIFIED; + + /// The scaling mode. + DisplayModeAttribs::SCANLINE_ORDER ScanlineOrder = DisplayModeAttribs::SCANLINE_ORDER_UNSPECIFIED; + }; + /// Engine creation attibutes struct EngineCreationAttribs { -- cgit v1.2.3