Need 3 points to define a rectangle in 3D.

Change-Id: I47e212f922b67ced6c6cd63bf90133c024cf0af4
This commit is contained in:
Jan Holesovsky 2014-04-08 08:58:18 +02:00
parent 5f7e661732
commit f6406c910a

View File

@ -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;
};