コード例 #1
0
void QGLWidget::resizeEvent(QResizeEvent *)
{
    Q_D(QGLWidget);
    if (!isValid())
        return;
    makeCurrent();
    if (!d->glcx->initialized())
        glInit();
    resizeGL(width(), height());
    if (d->olcx) {
        makeOverlayCurrent();
        resizeOverlayGL(width(), height());
    }
}
コード例 #2
0
ファイル: qgl_mac.cpp プロジェクト: muromec/qtopia-ezx
void QGLWidget::resizeEvent(QResizeEvent *)
{
    Q_D(QGLWidget);
    if(!isValid())
        return;
    if (!isWindow())
        d->glcx->d_func()->update = true;
    makeCurrent();
    if(!d->glcx->initialized())
        glInit();
    resizeGL(width(), height());

    if(d->olcx) {
        makeOverlayCurrent();
        aglUpdateContext((AGLContext)d->olcx);
        resizeOverlayGL(width(), height());
    }
}
コード例 #3
0
ファイル: QGLWidget_DhClass.cpp プロジェクト: uduki/hsQt
void DhQGLWidget::DvhresizeOverlayGL(int x1, int x2) {
  return resizeOverlayGL(x1, x2);
}