6 #ifndef _INC_cDXSettings_H
7 #define _INC_cDXSettings_H
31 DWORD m_MultisampleQuality;
32 VertexProcessing_TYPE m_eVertexProcessingType;
33 UINT m_PresentInterval;
36 cDXEnumComboPtr m_pCombo;
37 cDXEnumDevicePtr m_pDevice;
38 cDXEnumAdapterPtr m_pAdapter;
44 void put_Combo(cDXEnumCombo* pCombo);
45 void SetMode(
const D3DDISPLAYMODE& DisplayMode, cDXEnumCombo* pCombo,
bool bUsesDepthBuffer);
47 cDXEnumComboPtr get_Combo() const noexcept
51 cDXEnumDevicePtr get_Device() const noexcept
55 cDXEnumAdapterPtr get_Adapter() const noexcept
60 bool isFullscreen()
const
62 ASSERT(m_pCombo !=
nullptr);
63 return m_pCombo->isFullscreen();
66 void GetPresentParams(D3DPRESENT_PARAMETERS& pp)
const;
76 bool m_bFullScreenMode;
79 cDXSettingsMode m_FullScreen;
80 cDXSettingsMode m_Windowed;
85 bool SetBestModeFullScreen(
const cDXEnumeration& d3dEnumeration,
bool bRequireREF,
const cWinSize& szFullScreen);
88 bool SetBestModeWindowed(
const cDXEnumeration& d3dEnumeration,
bool bRequireREF);
89 HRESULT SetBestMode(
const cDXEnumeration& d3dEnumeration,
bool bRequireREF,
bool bFullScreenPref,
const cWinSize& szFullScreen);
91 bool isFullScreenMode() const noexcept
93 return m_bFullScreenMode;
95 cDXSettingsMode& ref_Mode() noexcept
97 return m_bFullScreenMode ? m_FullScreen : m_Windowed;
99 const cDXSettingsMode& get_Mode() const noexcept
102 return m_bFullScreenMode ? m_FullScreen : m_Windowed;
105 cDXEnumAdapterPtr get_Adapter()
const
107 return get_Mode().get_Adapter();
109 cDXEnumDevicePtr get_Device()
const
111 return get_Mode().get_Device();
113 cDXEnumComboPtr get_Combo()
const
115 return get_Mode().get_Combo();
118 int get_AdapterOrdinal()
const
121 cDXEnumComboPtr pCombo = get_Combo();
122 if (pCombo ==
nullptr)
124 return pCombo->get_AdapterOrdinal();
128 return get_Device()->m_eDevType;
132 return get_Combo()->m_eFormatBackBuffer;
135 void GetPresentParams(D3DPRESENT_PARAMETERS& pp)
const;
#define GRAY3D_LINK
Definition: Gray3D.h:15
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
D3DDEVTYPE
Definition: UseDX.h:318
enum _D3DFORMAT D3DFORMAT
enum _D3DMULTISAMPLE_TYPE D3DMULTISAMPLE_TYPE
#define ASSERT(exp)
Definition: cDebugAssert.h:87
Definition: Gray3D.cpp:12