equal
deleted
inserted
replaced
4 #include <QCursor> |
4 #include <QCursor> |
5 #include <QTimer> |
5 #include <QTimer> |
6 #include <QtGui/QOpenGLContext> |
6 #include <QtGui/QOpenGLContext> |
7 #include <QtGui/QOpenGLShaderProgram> |
7 #include <QtGui/QOpenGLShaderProgram> |
8 |
8 |
9 GameView::GameView() : m_delta(0), m_windowChanged(true) { |
9 GameView::GameView(QQuickItem* parent) |
|
10 : QQuickItem(parent), m_delta(0), m_windowChanged(true) { |
10 connect(this, &QQuickItem::windowChanged, this, |
11 connect(this, &QQuickItem::windowChanged, this, |
11 &GameView::handleWindowChanged); |
12 &GameView::handleWindowChanged); |
12 } |
13 } |
13 |
14 |
14 void GameView::tick(quint32 delta) { |
15 void GameView::tick(quint32 delta) { |