| 446 | } |
| 447 | |
| 448 | void 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 | |
| 463 | bool ExampleBase::IsDrawable() const |
| 464 | { |