Esempio n. 1
0
bool $CLASS_NAME::resize (const ResizeInput &input)
{
    _viewport->set_bounds(AlignedBox<2>(ZERO, input.new_size()));

    glViewport(0, 0, (GLsizei)input.new_size()[WIDTH], (GLsizei)input.new_size()[HEIGHT]);
    check_graphics_error();

    return Scene::resize(input);
}
Esempio n. 2
0
bool LightingScene::resize (const ResizeInput & input)
{
    logger()->log(LOG_INFO, LogBuffer() << "Resizing to " << input.new_size());

    _viewport->set_bounds(AlignedBox<2>(ZERO, input.new_size()));
    glViewport(0, 0, input.new_size()[WIDTH], input.new_size()[HEIGHT]);

    check_graphics_error();

    return Scene::resize(input);
}