mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Use the built-in laser pointer for magicleap
This commit is contained in:
parent
9b4b02275e
commit
4709a3061d
9 changed files with 15 additions and 62 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue