void GLWidget::resizeGL(int width, int height) { resizeRender(m_renderer.renderSettings().m_imageResolution.x, m_renderer.renderSettings().m_imageResolution.y, width, height); }
void GLWidget::onResolutionSettingsChanged(RenderPropertiesUI::ResolutionMode mode, int axis1, int axis2) { m_resolutionMode = mode; m_resolutionLongestAxis = axis1; resizeRender(axis1, axis2, width(), height()); }
/* call this function when your windows is resized. Mygui needs to know to fix sizing issues and input injection. */ void BaseManager::_windowResized() { RECT rect = { 0, 0, 0, 0 }; GetClientRect(hWnd, &rect); int width = rect.right - rect.left; int height = rect.bottom - rect.top; resizeRender(width, height); if (mPlatform) mPlatform->getRenderManagerPtr()->setViewSize(width, height); setInputViewSize(width, height); }