void CubeMapExample::viewportEvent(const Vector2i& size) { defaultFramebuffer.setViewport({{}, size}); camera->setViewport(size); }
void CubeMapExample::viewportEvent(ViewportEvent& event) { GL::defaultFramebuffer.setViewport({{}, event.framebufferSize()}); _camera->setViewport(event.windowSize()); }