| 201 | } |
| 202 | |
| 203 | void Screen::SetGameWindowMode(GameWindowMode windowMode) |
| 204 | { |
| 205 | #if !USE_EDITOR |
| 206 | auto win = Engine::MainWindow; |
| 207 | if (!win) |
| 208 | return; |
| 209 | switch (windowMode) |
| 210 | { |
| 211 | case GameWindowMode::Windowed: |
| 212 | if (GetIsFullscreen()) |
| 213 | SetIsFullscreen(false); |
| 214 | win->SetBorderless(false, false); |
| 215 | break; |
| 216 | case GameWindowMode::Fullscreen: |
| 217 | SetIsFullscreen(true); |
| 218 | break; |
| 219 | case GameWindowMode::Borderless: |
| 220 | win->SetBorderless(true, false); |
| 221 | break; |
| 222 | case GameWindowMode::FullscreenBorderless: |
| 223 | win->SetBorderless(true, true); |
| 224 | break; |
| 225 | } |
| 226 | #endif |
| 227 | } |
| 228 | |
| 229 | Window* Screen::GetMainWindow() |
| 230 | { |
nothing calls this directly
no test coverage detected