Need 3 points to define a rectangle in 3D.
Change-Id: I47e212f922b67ced6c6cd63bf90133c024cf0af4
This commit is contained in:
@@ -49,6 +49,7 @@ class Text : public Renderable3DObject
|
|||||||
private:
|
private:
|
||||||
BitmapEx maText;
|
BitmapEx maText;
|
||||||
glm::vec3 maTopLeft;
|
glm::vec3 maTopLeft;
|
||||||
|
glm::vec3 maTopRight;
|
||||||
glm::vec3 maBottomRight;
|
glm::vec3 maBottomRight;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -56,6 +57,7 @@ class Rectangle : public Renderable3DObject
|
|||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
glm::vec3 maTopLeft;
|
glm::vec3 maTopLeft;
|
||||||
|
glm::vec3 maTopRight;
|
||||||
glm::vec3 maBottomRight;
|
glm::vec3 maBottomRight;
|
||||||
Color maColor; // RGBA fill color
|
Color maColor; // RGBA fill color
|
||||||
Color maLineColor; // RGBA line color
|
Color maLineColor; // RGBA line color
|
||||||
@@ -66,7 +68,6 @@ class Camera : public Renderable3DObject
|
|||||||
public:
|
public:
|
||||||
Camera();
|
Camera();
|
||||||
private:
|
private:
|
||||||
|
|
||||||
glm::vec3 maPos;
|
glm::vec3 maPos;
|
||||||
glm::vec3 maDirection;
|
glm::vec3 maDirection;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user