| 1 | // Copyright (C) 2015 Paul Lemire |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 3 | |
| 4 | #include "qabstractframeadvanceservice_p.h" |
| 5 | #include "qabstractframeadvanceservice_p_p.h" |
| 6 | |
| 7 | QT_BEGIN_NAMESPACE |
| 8 | |
| 9 | namespace Qt3DCore { |
| 10 | |
| 11 | |
| 12 | /* !\internal |
| 13 | \class Qt3DCore::QAbstractFrameAdvanceService |
| 14 | \inmodule Qt3DCore |
| 15 | \brief Interface for a Qt3D frame advance service. |
| 16 | |
| 17 | This is an interface class that should be subclassed by providers of the |
| 18 | frame advance service. When used with the Renderer aspect, the aspect needs to |
| 19 | be the one providing the ticks depending on the vertical refresh rate. When |
| 20 | used with no Renderer aspect, a default tick clock implementation can be |
| 21 | used. |
| 22 | */ |
| 23 | |
| 24 | |
| 25 | QAbstractFrameAdvanceService::QAbstractFrameAdvanceService(const QString &description) |
| 26 | : QAbstractServiceProvider(QServiceLocator::FrameAdvanceService, description) |
| 27 | { |
| 28 | |
| 29 | } |
| 30 | |
| 31 | QAbstractFrameAdvanceService::QAbstractFrameAdvanceService(QAbstractFrameAdvanceServicePrivate &dd) |
| 32 | : QAbstractServiceProvider(dd) |
| 33 | { |
| 34 | |
| 35 | } |
| 36 | |
| 37 | /* |
| 38 | \fn qint64 Qt3DCore::QAbstractFrameAdvanceService::waitForNextFrame() |
| 39 | |
| 40 | Returns the current time, the call may be blocking if waiting for a tick. |
| 41 | */ |
| 42 | |
| 43 | /* |
| 44 | \fn void Qt3DCore::QAbstractFrameAdvanceService::start() |
| 45 | |
| 46 | Starts the service. |
| 47 | */ |
| 48 | |
| 49 | /* |
| 50 | \fn void Qt3DCore::QAbstractFrameAdvanceService::stop() |
| 51 | |
| 52 | Stops the service, performing any cleanup deemed necessary. |
| 53 | */ |
| 54 | |
| 55 | } // Qt3D |
| 56 | |
| 57 | QT_END_NAMESPACE |
| 58 | |
| 59 | #include "moc_qabstractframeadvanceservice_p.cpp" |
| 60 | |