1 | // Copyright (C) 2024 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | #include "qquick3dxranimationdriver_p.h" |
5 | |
6 | QT_BEGIN_NAMESPACE |
7 | |
8 | QQuick3DXrAnimationDriver::QQuick3DXrAnimationDriver() |
9 | { |
10 | } |
11 | |
12 | void QQuick3DXrAnimationDriver::advance() |
13 | { |
14 | m_elapsed += m_step; |
15 | advanceAnimation(); |
16 | } |
17 | |
18 | qint64 QQuick3DXrAnimationDriver::elapsed() const |
19 | { |
20 | return m_elapsed; |
21 | } |
22 | |
23 | void QQuick3DXrAnimationDriver::setStep(int stepSize) |
24 | { |
25 | m_step = stepSize; |
26 | } |
27 | |
28 | void QQuick3DXrAnimationDriver::start() |
29 | { |
30 | m_elapsed = 0; |
31 | QAnimationDriver::start(); |
32 | } |
33 | |
34 | QT_END_NAMESPACE |
35 |