-
Notifications
You must be signed in to change notification settings - Fork 0
/
shadercontrols.cpp
40 lines (32 loc) · 1.17 KB
/
shadercontrols.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#include "shadercontrols.h"
#include "ui_shadercontrols.h"
ShaderControls::ShaderControls(QWidget *parent) :
QWidget(parent),
ui(new Ui::ShaderControls)
{
ui->setupUi(this);
connect(ui->modelComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(slot_setCurrentModel(int)));
connect(ui->surfaceShaderComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(slot_setCurrentSurfaceShaderProgram(int)));
connect(ui->postprocessShaderComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(slot_setCurrentPostprocessShaderProgram(int)));
connect(ui->matcapComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(slot_setCurrentMatcapTexture(int)));
}
ShaderControls::~ShaderControls()
{
delete ui;
}
void ShaderControls::slot_setCurrentModel(int i)
{
emit sig_setCurrentModel(i);
}
void ShaderControls::slot_setCurrentSurfaceShaderProgram(int i)
{
emit sig_setCurrentSurfaceShaderProgram(i);
}
void ShaderControls::slot_setCurrentPostprocessShaderProgram(int i)
{
emit sig_setCurrentPostprocessShaderProgram(i);
}
void ShaderControls::slot_setCurrentMatcapTexture(int i)
{
emit sig_setCurrentMatcapTexture(i);
}