diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2015-07-30 16:22:04 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2015-08-06 13:43:27 +0000 |
commit | ce69c98f6954ef2c8806bc44a457a58e4202d751 (patch) | |
tree | ed1e4e6f3b4782299457b9e8ce92bd8a25b51477 /src/logic/qt3dlogic_global.h | |
parent | 9b6ca58d5d49acdff284e5e4853b338bb60572e8 (diff) |
Add a new Logic aspect to allow synchronous operations
The QLogicComponent allows users to have code execute
synchronously with the Qt3D engine each frame.
Very useful for implementing some pieces of applicaton logic or
for prototyping functionality that can later be folded back into
Qt3D in a declarative manner.
Change-Id: Ia7d69b77d782e67ace0a64a7c59188786fb731fd
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/logic/qt3dlogic_global.h')
-rw-r--r-- | src/logic/qt3dlogic_global.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/logic/qt3dlogic_global.h b/src/logic/qt3dlogic_global.h new file mode 100644 index 000000000..0b292e3b0 --- /dev/null +++ b/src/logic/qt3dlogic_global.h @@ -0,0 +1,56 @@ +/**************************************************************************** +** +** Copyright (C) 2015 Klaralvdalens Datakonsult AB (KDAB). +** Contact: http://www.qt-project.org/legal +** +** This file is part of the Qt3D module of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL3$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see http://www.qt.io/terms-conditions. For further +** information use the contact form at http://www.qt.io/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPLv3 included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 3 requirements +** will be met: https://www.gnu.org/licenses/lgpl.html. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 2.0 or later as published by the Free +** Software Foundation and appearing in the file LICENSE.GPL included in +** the packaging of this file. Please review the following information to +** ensure the GNU General Public License version 2.0 requirements will be +** met: http://www.gnu.org/licenses/gpl-2.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef QT3DLOGIC_GLOBAL_H +#define QT3DLOGIC_GLOBAL_H + +#include <QtCore/qglobal.h> + +QT_BEGIN_NAMESPACE + +#if defined(QT_SHARED) || !defined(QT_STATIC) +# if defined(QT3DLOGIC_LIBRARY) +# define QT3DLOGICSHARED_EXPORT Q_DECL_EXPORT +# else +# define QT3DLOGICSHARED_EXPORT Q_DECL_IMPORT +# endif +#else +# define QT3DLOGICSHARED_EXPORT +#endif + +QT_END_NAMESPACE + +#endif // QT3DLOGIC_GLOBAL_H |