Make it possible to add many browsers and targets by moving functionality to ScreenSpaceRenderable

This commit is contained in:
Ylva Selling
2021-03-23 09:44:14 +01:00
parent ac275140c5
commit fbc05244e1
8 changed files with 158 additions and 156 deletions
@@ -71,6 +71,18 @@ public:
bool isEnabled() const;
float depth();
// Added by skybrowser team
// Screen space functionality in these coords: [-1,1][-ratio,ratio]
glm::vec2 getScreenSpacePosition();
glm::vec2 getScreenSpaceDimensions();
glm::vec2 getUpperRightCornerScreenSpace();
glm::vec2 getLowerLeftCornerScreenSpace();
bool coordIsInsideCornersScreenSpace(glm::vec2 coord);
void translate(glm::vec2 translation, glm::vec2 position);
friend bool operator<(const ScreenSpaceRenderable& lhs, const ScreenSpaceRenderable& rhs);
// End of addition by skybrowser team
static documentation::Documentation Documentation();
protected: