diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2014-08-13 15:09:36 +0300 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2014-08-18 09:11:30 +0300 |
commit | 169a4d638c6c1b6634ffcfd19c4fe3cb94cf27d5 (patch) | |
tree | 454810f2e9cc418bae9f1c6716c51c3fae38a968 /src/datavisualization/utils/shaderhelper_p.h | |
parent | be7bdaa8930caf15fcc58a480d223e0c2b8af6ed (diff) |
Implement volume rendering support
New subclass of QCustom3DItem, QCustom3DVolume is provided.
The documentation for the example will be done in a separate commit.
Change-Id: Idb3fdb0654c6bec7606ca012b75852a5a8412397
Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavisualization/utils/shaderhelper_p.h')
-rw-r--r-- | src/datavisualization/utils/shaderhelper_p.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/datavisualization/utils/shaderhelper_p.h b/src/datavisualization/utils/shaderhelper_p.h index fdef0dff..67e8a2f3 100644 --- a/src/datavisualization/utils/shaderhelper_p.h +++ b/src/datavisualization/utils/shaderhelper_p.h @@ -57,6 +57,7 @@ class ShaderHelper void setUniformValue(GLuint uniform, const QMatrix4x4 &value); void setUniformValue(GLuint uniform, GLfloat value); void setUniformValue(GLuint uniform, GLint value); + void setUniformValueArray(GLuint uniform, const QVector4D *values, int count); GLuint MVP(); GLuint view(); @@ -73,6 +74,10 @@ class ShaderHelper GLuint gradientMin(); GLuint gradientHeight(); GLuint lightColor(); + GLuint volumeSliceIndices(); + GLuint colorIndex(); + GLuint cameraPositionRelativeToModel(); + GLuint color8Bit(); GLuint posAtt(); GLuint uvAtt(); @@ -107,6 +112,10 @@ class ShaderHelper GLuint m_gradientMinUniform; GLuint m_gradientHeightUniform; GLuint m_lightColorUniform; + GLuint m_volumeSliceIndices; + GLuint m_colorIndex; + GLuint m_cameraPositionRelativeToModel; + GLuint m_color8Bit; GLboolean m_initialized; }; |