From 942e786f66f610469bbda89f53cabb98185772d1 Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Mon, 7 Dec 2015 23:10:20 +0100 Subject: Add first steps for isHit detection --- src/mmscene.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/mmscene.h') diff --git a/src/mmscene.h b/src/mmscene.h index d68af98..78df57a 100644 --- a/src/mmscene.h +++ b/src/mmscene.h @@ -14,6 +14,9 @@ public: MMScene(QQuickItem *parent = 0); ~MMScene(); +public slots: + void mousePressed(int x, int y); + protected: /** * @brief paintUnderQmlScene @@ -75,6 +78,26 @@ private: GLSphere *m_sphere; GLDisc *m_disc; + + /** + * @brief m_MouseNear + * The near point of a mouse click or movement. + * Needed in synchronizeThreads(). + */ + QVector3D m_MouseNear; + + /** + * @brief m_MouseNear + * The far point of a mouse click or movement. + * Needed in synchronizeThreads(). + */ + QVector3D m_mouseFar; + + /** + * @brief m_lastIntersection + * The last intersection of the mouse line with the chessboard. + */ + QVector3D m_lastIntersection; }; #endif // MMSCENE_H -- cgit v1.2.3-70-g09d2