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#include <QtCore/QCborStreamWriter>
21#include <QtCore/QVariant>
22#include <QtCore/QMetaType>
23#include <private/qglobal_p.h>
24
25QT_BEGIN_NAMESPACE
26
27class Q_QUICK3DPARTICLES_EXPORT QQuick3DParticleShapeDataUtils
28{
29public:
30 static QVariant readValue(QCborStreamReader &reader, QMetaType::Type type);
31 static QString readString(QCborStreamReader &reader);
32 static double readReal(QCborStreamReader &reader);
33 static int readShapeHeader(QCborStreamReader &reader);
34 static void writeShapeHeader(QCborStreamWriter &writer, int version = 1);
35 static void writeValue(QCborStreamWriter &writer, const QVariant &value);
36};
37
38QT_END_NAMESPACE
39
40#endif // QQUICK3DPARTICLESHAPEDATAUTILS_P_H
41

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