ShaderNode: Add inputs
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
#include <Widgets/MainWindow.hpp>
|
||||
#include <Nazara/Renderer/GlslWriter.hpp>
|
||||
#include <ShaderGraph.hpp>
|
||||
#include <Widgets/InputEditor.hpp>
|
||||
#include <Widgets/TextureEditor.hpp>
|
||||
#include <nodes/FlowView>
|
||||
#include <QtWidgets/QDockWidget>
|
||||
#include <QtWidgets/QMenuBar>
|
||||
#include <QtWidgets/QTextEdit>
|
||||
#include <iostream>
|
||||
@@ -17,6 +19,13 @@ m_shaderGraph(graph)
|
||||
QtNodes::FlowView* flowView = new QtNodes::FlowView(scene);
|
||||
setCentralWidget(flowView);
|
||||
|
||||
QDockWidget* inputDock = new QDockWidget(tr("&Inputs"));
|
||||
|
||||
InputEditor* inputEditor = new InputEditor(m_shaderGraph);
|
||||
inputDock->setWidget(inputEditor);
|
||||
|
||||
addDockWidget(Qt::LeftDockWidgetArea, inputDock);
|
||||
|
||||
QDockWidget* textureDock = new QDockWidget(tr("&Textures"));
|
||||
|
||||
TextureEditor* textureEditor = new TextureEditor(m_shaderGraph);
|
||||
|
||||
Reference in New Issue
Block a user