Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquick3dxranimationdriver.cpp
Go to the documentation of this file.
1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
5
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