qmlfrontend/game_view.cpp
changeset 14863 ef9630519491
parent 14734 cc6ab1e3f7d5
child 15922 ebc50f21e849
equal deleted inserted replaced
14862:111c4d750c6d 14863:ef9630519491
     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) {