diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-12-07 23:10:20 +0100 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-12-07 23:10:20 +0100 |
| commit | 942e786f66f610469bbda89f53cabb98185772d1 (patch) | |
| tree | 486c97600dbe8854fdaae912d53b62b2df5d2ce0 /src/mmscene.h | |
| parent | 367b4f04d9b4b92f96d477c6ca3b93e90cd3caf0 (diff) | |
| download | Multimedia-942e786f66f610469bbda89f53cabb98185772d1.tar.gz Multimedia-942e786f66f610469bbda89f53cabb98185772d1.zip | |
Add first steps for isHit detection
Diffstat (limited to 'src/mmscene.h')
| -rw-r--r-- | src/mmscene.h | 23 |
1 files changed, 23 insertions, 0 deletions
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 |
