1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QQUICK3DPARTICLESHAPEDATAUTILS_P_H
5#define QQUICK3DPARTICLESHAPEDATAUTILS_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtQuick3DParticles/qtquick3dparticlesglobal.h>
19#include <QtCore/QCborStreamReader>
20#if QT_CONFIG(cborstreamwriter)
21#include <QtCore/QCborStreamWriter>
22#endif
23#include <QtCore/QVariant>
24#include <QtCore/QMetaType>
25#include <private/qglobal_p.h>
26
27QT_BEGIN_NAMESPACE
28
29class Q_QUICK3DPARTICLES_EXPORT QQuick3DParticleShapeDataUtils
30{
31public:
32 static QVariant readValue(QCborStreamReader &reader, QMetaType::Type type);
33 static QString readString(QCborStreamReader &reader);
34 static double readReal(QCborStreamReader &reader);
35 static int readShapeHeader(QCborStreamReader &reader);
36#if QT_CONFIG(cborstreamwriter)
37 static void writeShapeHeader(QCborStreamWriter &writer, int version = 1);
38 static void writeValue(QCborStreamWriter &writer, const QVariant &value);
39#endif
40};
41
42QT_END_NAMESPACE
43
44#endif // QQUICK3DPARTICLESHAPEDATAUTILS_P_H
45

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

source code of qtquick3d/src/quick3dparticles/qquick3dparticleshapedatautils_p.h