1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QQUICK3DXRANIMATIONDRIVER_P_H
5#define QQUICK3DXRANIMATIONDRIVER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18
19#include <QtCore/QAnimationDriver>
20
21QT_BEGIN_NAMESPACE
22
23class QQuick3DXrAnimationDriver : public QAnimationDriver
24{
25public:
26 QQuick3DXrAnimationDriver();
27 void advance() override;
28 qint64 elapsed() const override;
29
30 void setStep(int stepSize);
31
32protected:
33 void start() override;
34
35private:
36 int m_step = 16;
37 qint64 m_elapsed = 0;
38};
39
40QT_END_NAMESPACE
41
42#endif // QQUICK3DXRANIMATIONDRIVER_P_H
43

source code of qtquick3d/src/xr/quick3dxr/qquick3dxranimationdriver_p.h