summaryrefslogtreecommitdiffstats
path: root/src/datavisualization/engine/abstract3drenderer_p.h
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2014-06-18 06:44:42 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2014-06-24 08:05:45 +0300
commit52d5ff5dc54c40925f3ec2eecc8573cb5e69d830 (patch)
treecd20f84df234a68ed2086765d65d99a4b98b77f0 /src/datavisualization/engine/abstract3drenderer_p.h
parent9b50f3f7d49f57712517d1d05de69ec7495c13f9 (diff)
Bars: Moved bar, background and grid line drawing to separate methods
+ Added floor reflection support in ifdefs Change-Id: I1060aee1bc8f7a0360ad01675c36c0f1a2120f1c Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'src/datavisualization/engine/abstract3drenderer_p.h')
-rw-r--r--src/datavisualization/engine/abstract3drenderer_p.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/datavisualization/engine/abstract3drenderer_p.h b/src/datavisualization/engine/abstract3drenderer_p.h
index 0dfc7367..325ac8e6 100644
--- a/src/datavisualization/engine/abstract3drenderer_p.h
+++ b/src/datavisualization/engine/abstract3drenderer_p.h
@@ -29,6 +29,8 @@
#ifndef ABSTRACT3DRENDERER_P_H
#define ABSTRACT3DRENDERER_P_H
+//#define USE_REFLECTIONS // Bars only test version (only floor reflects)
+
#include <QtGui/QOpenGLFunctions>
#include "datavisualizationglobal_p.h"
@@ -139,11 +141,19 @@ public:
void setSelectionLabel(const QString &label);
QString &selectionLabel();
+#ifdef USE_REFLECTIONS
+ void drawCustomItems(RenderingState state, ShaderHelper *shader,
+ const QMatrix4x4 &viewMatrix,
+ const QMatrix4x4 &projectionViewMatrix,
+ const QMatrix4x4 &depthProjectionViewMatrix,
+ GLuint depthTexture, GLfloat shadowQuality, GLfloat reflection = 1.0f);
+#else
void drawCustomItems(RenderingState state, ShaderHelper *shader,
const QMatrix4x4 &viewMatrix,
const QMatrix4x4 &projectionViewMatrix,
const QMatrix4x4 &depthProjectionViewMatrix,
GLuint depthTexture, GLfloat shadowQuality);
+#endif
QVector4D indexToSelectionColor(GLint index);
signals: