| 202 | } |
| 203 | |
| 204 | bool 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 | |
| 224 | bool DX11Engine::SetFullscreen(DXGIOutput const& output, bool fullscreen) |
| 225 | { |
nothing calls this directly
no test coverage detected