| 135 | } |
| 136 | |
| 137 | static void ToggleFullscreen(HWND hwnd) { |
| 138 | if (!BE1::rhi.IsFullscreen()) { |
| 139 | ChangeRenderWindow(hwnd, disp_width.GetInteger(), disp_height.GetInteger(), true); |
| 140 | |
| 141 | BE1::rhi.SetFullscreen(app.mainRenderContext->GetContextHandle(), disp_width.GetInteger(), disp_height.GetInteger()); |
| 142 | } else { |
| 143 | BE1::rhi.ResetFullscreen(app.mainRenderContext->GetContextHandle()); |
| 144 | |
| 145 | ChangeRenderWindow(hwnd, disp_width.GetInteger(), disp_height.GetInteger(), false); |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | static void DisplayContext(BE1::RHI::Handle context, void *dataPtr) { |
| 150 | app.Draw(); |
no test coverage detected