MCPcopy Create free account
hub / github.com/carbonengine/trinity / ResizeWindow

Method ResizeWindow

trinityal/tests/SwapChainResizing.cpp:10–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8struct 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
21using namespace Tr2RenderContextEnum;

Callers

nothing calls this directly

Calls 4

ResizeMethod · 0.45
GetClientWidthMethod · 0.45
GetClientHeightMethod · 0.45
SetPresentParametersMethod · 0.45

Tested by

no test coverage detected