merged all drawing functions into a single shader processing function

This commit is contained in:
itsmattkc
2020-11-10 15:50:13 +11:00
parent 1d61f89920
commit 0429e70fe0
46 changed files with 570 additions and 398 deletions
@@ -248,6 +248,13 @@ void ManagedDisplayWidget::doneCurrent()
}
}
void ManagedDisplayWidget::update()
{
if (RenderManager::instance()->backend() == RenderManager::kOpenGL) {
static_cast<ManagedDisplayWidgetOpenGL*>(inner_widget_)->update();
}
}
Menu* ManagedDisplayWidget::GetDisplayMenu(QMenu* parent, bool auto_connect)
{
QStringList displays = color_manager()->ListAvailableDisplays();
@@ -114,6 +114,11 @@ public:
*/
Menu* GetLookMenu(QMenu* parent, bool auto_connect = true);
/**
* @brief Passes update signal through to inner widget
*/
void update();
public slots:
/**
* @brief Replaces the color transform with a new one