void GLWidgetRenderer::resizeEvent(QResizeEvent *e) { DPTR_D(GLWidgetRenderer); d.update_background = true; resizeRenderer(e->size()); QGLWidget::resizeEvent(e); //will call resizeGL(). TODO:will call paintEvent()? }
void WidgetRenderer::resizeEvent(QResizeEvent *e) { DPTR_D(WidgetRenderer); d.update_background = true; resizeRenderer(e->size()); update(); }
void OpenGLRendererBase::onResizeEvent(int w, int h) { DPTR_D(OpenGLRendererBase); d.update_background = true; resizeRenderer(w, h); d.setupAspectRatio(); //QOpenGLWindow::resizeEvent(e); //will call resizeGL(). TODO:will call paintEvent()? }
void QuickFBORenderer::fboSizeChanged(const QSize &size) { DPTR_D(QuickFBORenderer); d.update_background = true; resizeRenderer(size); d.glv.setProjectionMatrixToRect(QRectF(0, 0, size.width(), size.height())); d.setupAspectRatio(); }
void Direct2DRenderer::resizeEvent(QResizeEvent *e) { resizeRenderer(e->size()); DPTR_D(Direct2DRenderer); d.update_background = true; if (d.render_target) { D2D1_SIZE_U size = { (UINT32)e->size().width(), (UINT32)e->size().height() }; // Note: This method can fail, but it's okay to ignore the // error here -- it will be repeated on the next call to // EndDraw. d.render_target->Resize(&size); //D2D1_SIZE_U&? } update(); }
void WidgetRenderer::resizeEvent(QResizeEvent *e) { resizeRenderer(e->size()); update(); }
void Tron::resizeEvent(QResizeEvent *) { resizeRenderer(); updatePixmap(); update(); }
void Tron::createNewPlayfield() { resizeRenderer(); pf.initialize(); }