From f6406c910a60c075ca3c4928c7f451eae3ab751f Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Tue, 8 Apr 2014 08:58:18 +0200 Subject: Need 3 points to define a rectangle in 3D. Change-Id: I47e212f922b67ced6c6cd63bf90133c024cf0af4 --- chart2/source/view/inc/3DChartObjects.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chart2') diff --git a/chart2/source/view/inc/3DChartObjects.hxx b/chart2/source/view/inc/3DChartObjects.hxx index e4e3709eed06..06121f486ca6 100644 --- a/chart2/source/view/inc/3DChartObjects.hxx +++ b/chart2/source/view/inc/3DChartObjects.hxx @@ -49,6 +49,7 @@ class Text : public Renderable3DObject private: BitmapEx maText; glm::vec3 maTopLeft; + glm::vec3 maTopRight; glm::vec3 maBottomRight; }; @@ -56,6 +57,7 @@ class Rectangle : public Renderable3DObject { private: glm::vec3 maTopLeft; + glm::vec3 maTopRight; glm::vec3 maBottomRight; Color maColor; // RGBA fill color Color maLineColor; // RGBA line color @@ -66,7 +68,6 @@ class Camera : public Renderable3DObject public: Camera(); private: - glm::vec3 maPos; glm::vec3 maDirection; }; -- cgit