| 8 | struct SwapChainResizing : public WithValidRenderContext |
| 9 | { |
| 10 | static ALResult ResizeWindow( uint32_t width, uint32_t height, bool windowed = true ) |
| 11 | { |
| 12 | auto window = GetWindow(); |
| 13 | window->Resize( width, height ); |
| 14 | presentParameters.windowed = windowed; |
| 15 | presentParameters.mode.width = window->GetClientWidth(); |
| 16 | presentParameters.mode.height = window->GetClientHeight(); |
| 17 | return renderContext->SetPresentParameters( 0, presentParameters ); |
| 18 | } |
| 19 | }; |
| 20 | |
| 21 | using namespace Tr2RenderContextEnum; |
nothing calls this directly
no test coverage detected