Use the built-in laser pointer for magicleap

This commit is contained in:
Alan Jeffrey 2019-08-12 11:26:46 -05:00
parent 9b4b02275e
commit 4709a3061d
9 changed files with 15 additions and 62 deletions

View file

@ -124,9 +124,10 @@ protected:
bool pointInsideViewport(glm::vec2 pt);
/**
* Redraw the laser. Returns the laser endpoint, in viewport coordinates.
* Returns the intersection of the laser and the viewport, in viewport coordinates.
* Returns (-1, -1) if the laser does not intersect the viewport.
*/
glm::vec2 redrawLaser();
glm::vec2 laserPosition();
private:
lumin::Prism* prism_ = nullptr; // represents the bounded space where the App renders.