summaryrefslogtreecommitdiff
path: root/chart2/source/view/inc/GL3DRenderer.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/view/inc/GL3DRenderer.hxx')
-rw-r--r--chart2/source/view/inc/GL3DRenderer.hxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/chart2/source/view/inc/GL3DRenderer.hxx b/chart2/source/view/inc/GL3DRenderer.hxx
index 6bfc38373d46..2154f7d9809a 100644
--- a/chart2/source/view/inc/GL3DRenderer.hxx
+++ b/chart2/source/view/inc/GL3DRenderer.hxx
@@ -255,7 +255,27 @@ private:
void LoadShaders();
};
+ struct PickingShaderResources
+ {
+ // CommonProID
+ GLint m_CommonProID;
+ GLint m_2DVertexID;
+ GLint m_2DColorID;
+ GLint m_MatrixID;
+
+ PickingShaderResources():
+ m_CommonProID(0) {}
+
+ ~PickingShaderResources()
+ {
+ glDeleteProgram(m_CommonProID);
+ }
+
+ void LoadShaders();
+ };
+
ShaderResources maResources;
+ PickingShaderResources maPickingResources;
// Projection matrix : default 45 degree Field of View, 4:3 ratio, display range : 0.1 unit <-> 100 units
glm::mat4 m_Projection;