MCPcopy Create free account
hub / github.com/LukasBanana/LLGL / Resize

Method Resize

examples/Cpp/ExampleBase/ExampleBase.cpp:448–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448void ExampleBase::Resize(const LLGL::Extent2D& clientAreaSize)
449{
450 drawableSize_ = clientAreaSize;
451
452 if (IsDrawable())
453 {
454 // Update swap buffers
455 swapChain->ResizeBuffers(drawableSize_);
456
457 // Re-draw frame
458 if (IsLoadingDone())
459 DrawFrame();
460 }
461}
462
463bool ExampleBase::IsDrawable() const
464{

Callers 1

OnResizeMethod · 0.45

Calls 1

ResizeBuffersMethod · 0.65

Tested by

no test coverage detected