From a28cdb72a4ea768a898ca07f0df0fa3c17c073a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpip=C3=A4=C3=A4?= Date: Tue, 10 Sep 2013 11:42:13 +0300 Subject: Module renamed Task-number: QTRD-2224 Change-Id: Iec18b6121809300b11d85445281d3c626c434f35 Reviewed-by: Miikka Heikkinen --- src/datavis3d/utils/shaderhelper_p.h | 110 ----------------------------------- 1 file changed, 110 deletions(-) delete mode 100644 src/datavis3d/utils/shaderhelper_p.h (limited to 'src/datavis3d/utils/shaderhelper_p.h') diff --git a/src/datavis3d/utils/shaderhelper_p.h b/src/datavis3d/utils/shaderhelper_p.h deleted file mode 100644 index 97fcf8a0..00000000 --- a/src/datavis3d/utils/shaderhelper_p.h +++ /dev/null @@ -1,110 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Digia Plc -** All rights reserved. -** For any questions to Digia, please use contact form at http://qt.digia.com -** -** This file is part of the QtDataVis3D module. -** -** Licensees holding valid Qt Enterprise licenses may use this file in -** accordance with the Qt Enterprise License Agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. -** -** If you have questions regarding the use of this file, please use -** contact form at http://qt.digia.com -** -****************************************************************************/ - -// -// W A R N I N G -// ------------- -// -// This file is not part of the QtDataVis3D API. It exists purely as an -// implementation detail. This header file may change from version to -// version without notice, or even be removed. -// -// We mean it. - -#ifndef SHADERHELPER_P_H -#define SHADERHELPER_P_H - -#include "datavis3dglobal_p.h" -#include - -class QOpenGLShaderProgram; - -QT_DATAVIS3D_BEGIN_NAMESPACE - -class ShaderHelper -{ - public: - ShaderHelper(QObject *parent, - const QString &vertexShader = QString(), - const QString &fragmentShader = QString(), - const QString &texture = QString(), - const QString &depthTexture = QString()); - ~ShaderHelper(); - - void setShaders(const QString &vertexShader, const QString &fragmentShader); - void setTextures(const QString &texture, const QString &depthTexture); - - void initialize(); - void bind(); - void release(); - void setUniformValue(GLuint uniform, const QVector3D &value); - void setUniformValue(GLuint uniform, const QVector4D &value); - void setUniformValue(GLuint uniform, const QMatrix4x4 &value); - void setUniformValue(GLuint uniform, GLfloat value); - void setUniformValue(GLuint uniform, GLint value); - - GLuint MVP(); - GLuint view(); - GLuint model(); - GLuint nModel(); - GLuint depth(); - GLuint lightP(); - GLuint lightS(); - GLuint ambientS(); - GLuint shadowQ(); - GLuint color(); - GLuint texture(); - GLuint shadow(); - - GLuint posAtt(); - GLuint uvAtt(); - GLuint normalAtt(); - - private: - QObject *m_caller; - QOpenGLShaderProgram *m_program; - - QString m_vertexShaderFile; - QString m_fragmentShaderFile; - - QString m_textureFile; - QString m_depthTextureFile; - - GLuint m_positionAttr; - GLuint m_uvAttr; - GLuint m_normalAttr; - - GLuint m_colorUniform; - GLuint m_viewMatrixUniform; - GLuint m_modelMatrixUniform; - GLuint m_invTransModelMatrixUniform; - GLuint m_depthMatrixUniform; - GLuint m_mvpMatrixUniform; - GLuint m_lightPositionUniform; - GLuint m_lightStrengthUniform; - GLuint m_ambientStrengthUniform; - GLuint m_shadowQualityUniform; - GLuint m_textureUniform; - GLuint m_shadowUniform; - - GLboolean m_initialized; -}; - -QT_DATAVIS3D_END_NAMESPACE - -#endif -- cgit v1.2.3