Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
assimputils.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef ASSIMPUTILS_H
5#define ASSIMPUTILS_H
6
7#include <QtCore/qglobal.h>
8#include <QtQuick3DUtils/private/qssgmesh_p.h>
9
10struct aiScene;
11struct aiMesh;
12
14
15class QString;
16
17namespace AssimpUtils
18{
19
22
24 const MeshList &meshes,
25 bool useFloatJointIndices,
26 bool generateLevelsOfDetail,
27 float normalMergeAngle,
28 float normalSplitAngle,
29 QString &errorString);
30
31}
32
33inline size_t qHash(const QVector3D &vector, size_t seed = 0) {
34 if (vector.isNull())
35 return seed;
36 return qHashBits(&vector, sizeof(float) * 3, seed);
37}
38
40
41#endif // ASSIMPUTILS_H
size_t qHash(const QVector3D &vector, size_t seed=0)
Definition assimputils.h:33
\inmodule QtCore
Definition qhash.h:818
Definition qlist.h:74
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
The QVector3D class represents a vector or vertex in 3D space.
Definition qvectornd.h:171
QSSGMesh::Mesh generateMeshData(const aiScene &scene, const MeshList &meshes, bool useFloatJointIndices, bool generateLevelsOfDetail, float normalMergeAngle, float normalSplitAngle, QString &errorString)
Combined button and popup list for selecting options.
size_t qHashBits(const void *p, size_t size, size_t seed) noexcept
Definition qhash.cpp:924
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
Definition qrandom.cpp:196
QList< int > vector
[14]
QGraphicsScene scene
[0]