Beispiel #1
0
void GLWidget::onFrameSwapped()
{
    m_renderer->unlockRenderer();
    // Assuming a blocking swap, our animation is driven purely by the
    // vsync in this example.
    emit renderRequested();
}
Beispiel #2
0
  void OrbitalWidget::renderClicked()
  {
    double quality = OrbitalQualityToDouble(ui.combo_quality->currentIndex());
    QModelIndexList selection = ui.table->selectionModel()->selectedIndexes();

    // Only one row can be selected at a time, so just check the row
    // of the first entry.
    if (selection.size() == 0) return;

    QModelIndex first = selection.first();
    first = m_sortedTableModel->mapToSource(first);

    int orbital = first.row() + 1;
    emit renderRequested(orbital, quality);
  }