src/platform/qt/ShaderSelector.h (view raw)
1/* Copyright (c) 2013-2015 Jeffrey Pfau
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6#ifndef QGBA_SHADER_SELECTOR_H
7#define QGBA_SHADER_SELECTOR_H
8
9#include <QDialog>
10
11#include "ui_ShaderSelector.h"
12
13class QGridLayout;
14struct VideoShader;
15
16namespace QGBA {
17
18class Display;
19
20class ShaderSelector : public QDialog {
21Q_OBJECT
22
23public:
24 ShaderSelector(Display* display, QWidget* parent = nullptr);
25 ~ShaderSelector();
26
27public slots:
28 void refreshShaders();
29 void clear();
30
31private:
32 void addUniform(QGridLayout*, float* value, float min, float max, int y, int x);
33 void addUniform(QGridLayout*, int* value, int min, int max, int y, int x);
34
35 Ui::ShaderSelector m_ui;
36 Display* m_display;
37 VideoShader* m_shaders;
38};
39
40}
41
42#endif