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
6QT_BEGIN_NAMESPACE
7
8QQuick3DXrAnimationDriver::QQuick3DXrAnimationDriver()
9{
10}
11
12void QQuick3DXrAnimationDriver::advance()
13{
14 m_elapsed += m_step;
15 advanceAnimation();
16}
17
18qint64 QQuick3DXrAnimationDriver::elapsed() const
19{
20 return m_elapsed;
21}
22
23void QQuick3DXrAnimationDriver::setStep(int stepSize)
24{
25 m_step = stepSize;
26}
27
28void QQuick3DXrAnimationDriver::start()
29{
30 m_elapsed = 0;
31 QAnimationDriver::start();
32}
33
34QT_END_NAMESPACE
35

source code of qtquick3d/src/xr/quick3dxr/qquick3dxranimationdriver.cpp