コード例 #1
0
ファイル: $CLASS_FILE_NAME.cpp プロジェクト: kurocha/dream
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);
}
コード例 #2
0
ファイル: main.cpp プロジェクト: ioquatix/dream-examples
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);
}