namespace GL {
WindowView::WindowView(Graphics::Window &w):
- View(Framebuffer::system()),
window(w),
device(Device::get_current())
{
void WindowView::window_resized(unsigned w, unsigned h)
{
- Framebuffer::system().resize(*this);
+ resize_framebuffer(w, h);
float aspect = static_cast<float>(w)/h;
if(camera)
camera->set_aspect_ratio(aspect);