Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
20using BoneIndexMap = QHash<QString, qint32>;
21using MeshList = QVector<const aiMesh *>;
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
Definition qlist.h:75
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
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)
QHash< QString, qint32 > BoneIndexMap
Definition assimputils.h:20
Combined button and popup list for selecting options.
size_t qHashBits(const void *p, size_t size, size_t seed) noexcept
Definition qhash.cpp:1089
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
Definition qrandom.cpp:196
QList< int > vector
[14]
QGraphicsScene scene
[0]