src/gl/gridprogram.h

changeset 102
9f435f66bd0c
parent 70
f21b800b02a4
equal deleted inserted replaced
101:910890292639 102:9f435f66bd0c
15 * You should have received a copy of the GNU General Public License 15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. 16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18 18
19 #pragma once 19 #pragma once
20 #include "basicshaderprogram.h" 20 #include "abstractshaderprogram.h"
21 #include "common.h" 21 #include "common.h"
22 22
23 class GridProgram : public AbstractBasicShaderProgram 23 class GridProgram : public AbstractShaderProgram
24 { 24 {
25 Q_OBJECT 25 Q_OBJECT
26 public: 26 public:
27 using AbstractBasicShaderProgram::AbstractBasicShaderProgram; 27 GridProgram(QObject* parent = nullptr);
28 void setGridMatrix(const glm::mat4& newGridMatrix); 28 void setGridMatrix(const glm::mat4& newGridMatrix);
29 void setGridColor(const QColor& newGridColor); 29 void setGridColor(const QColor& newGridColor);
30 protected: 30 protected:
31 const char* vertexShaderSource() const override; 31 const char* vertexShaderSource() const override;
32 const char* fragmentShaderSource() const override; 32 const char* fragmentShaderSource() const override;

mercurial