finished prototype of nodes providing a texture to a viewer

This commit is contained in:
itsmattkc
2019-07-13 03:13:59 -04:00
parent d76691a9ef
commit f2d11662c9
23 changed files with 383 additions and 68 deletions
+8 -4
View File
@@ -20,21 +20,25 @@
#include "viewer.h"
#include "widget/viewer/viewer.h"
ViewerPanel::ViewerPanel(QWidget *parent) :
PanelWidget(parent)
{
// QObject system handles deleting this
ViewerWidget* viewer = new ViewerWidget(this);
viewer_ = new ViewerWidget(this);
connect(viewer_, SIGNAL(TimeChanged(const rational&)), this, SIGNAL(TimeChanged(const rational&)));
// Set ViewerWidget as the central widget
setWidget(viewer);
setWidget(viewer_);
// Set strings
Retranslate();
}
void ViewerPanel::SetTexture(GLuint tex)
{
viewer_->SetTexture(tex);
}
void ViewerPanel::changeEvent(QEvent *e)
{
if (e->type() == QEvent::LanguageChange) {