MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / IsFullscreen

Method IsFullscreen

GTE/Graphics/DX11/DX11Engine.cpp:204–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204bool DX11Engine::IsFullscreen(DXGIOutput const& output) const
205{
206 if (mSwapChain)
207 {
208 auto const& desc = output.GetDescription();
209 std::wstring name(desc.DeviceName);
210 auto iter = mFullscreenState.find(name);
211 if (iter != mFullscreenState.end())
212 {
213 return iter->second;
214 }
215
216 // The 'output' has not yet been passed to SetFullscreen, so it is
217 // safe to assume that window is not fullscreen.
218 return false;
219 }
220
221 LogError("This function requires a swap chain.");
222}
223
224bool DX11Engine::SetFullscreen(DXGIOutput const& output, bool fullscreen)
225{

Callers

nothing calls this directly

Calls 2

GetDescriptionMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected