Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qquick3dgeometry_p.h
Go to the documentation of this file.
1
// Copyright (C) 2019 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
6
#
ifndef
Q_QUICK3D_GEOMETRY_P_H
7
#
define
Q_QUICK3D_GEOMETRY_P_H
8
9
//
10
// W A R N I N G
11
// -------------
12
//
13
// This file is not part of the Qt API. It exists purely as an
14
// implementation detail. This header file may change from version to
15
// version without notice, or even be removed.
16
//
17
// We mean it.
18
//
19
20
#
include
<
QtQuick3D
/
qquick3dgeometry
.
h
>
21
#
include
<
QtQuick3D
/
private
/
qquick3dobject_p
.
h
>
22
#
include
<
QtQuick3DRuntimeRender
/
private
/
qssgrendergeometry_p
.
h
>
23
24
#
include
<
QtGui
/
qvector3d
.
h
>
25
26
QT_BEGIN_NAMESPACE
27
28
class
Q_QUICK3D_EXPORT
QQuick3DGeometryPrivate
:
public
QQuick3DObjectPrivate
29
{
30
public
:
31
QQuick3DGeometryPrivate();
32
33
struct
Subset {
34
QString name;
35
QVector3D boundsMin;
36
QVector3D boundsMax;
37
quint32 offset;
38
quint32 count;
39
};
40
41
static
const
int
MAX_ATTRIBUTE_COUNT = 16;
42
static
const
int
MAX_TARGET_ATTRIBUTE_COUNT = 32;
43
QByteArray m_vertexBuffer;
44
QByteArray m_targetBuffer;
45
QByteArray m_indexBuffer;
46
QQuick3DGeometry::Attribute m_attributes[MAX_ATTRIBUTE_COUNT];
47
QVector<Subset> m_subsets;
48
int
m_attributeCount = 0;
49
QQuick3DGeometry::TargetAttribute m_targetAttributes[MAX_TARGET_ATTRIBUTE_COUNT];
50
int
m_targetAttributeCount = 0;
51
QQuick3DGeometry::PrimitiveType m_primitiveType = QQuick3DGeometry::PrimitiveType::Triangles;
52
QVector3D m_min;
53
QVector3D m_max;
54
int
m_stride = 0;
55
bool
m_geometryChanged =
true
;
56
bool
m_geometryBoundsChanged =
true
;
57
bool
m_targetChanged =
true
;
58
bool
m_usesOldTargetSemantics =
false
;
59
60
static
QQuick3DGeometry::Attribute::Semantic semanticFromName(
const
QByteArray &name);
61
static
QQuick3DGeometry::Attribute::ComponentType toComponentType(QSSGMesh::Mesh::ComponentType componentType);
62
};
63
64
QT_END_NAMESPACE
65
66
#
endif
QQuick3DGeometryPrivate
Definition
qquick3dgeometry_p.h:29
mapPrimitiveType
static QSSGMesh::Mesh::DrawMode mapPrimitiveType(QQuick3DGeometry::PrimitiveType t)
Definition
qquick3dgeometry.cpp:827
mapSemantic
static QSSGMesh::RuntimeMeshData::Attribute::Semantic mapSemantic(QQuick3DGeometry::Attribute::Semantic s)
Definition
qquick3dgeometry.cpp:847
mapComponentType
static QSSGMesh::Mesh::ComponentType mapComponentType(QQuick3DGeometry::Attribute::ComponentType t)
Definition
qquick3dgeometry.cpp:883
qtquick3d
src
quick3d
qquick3dgeometry_p.h
Generated on
for Qt by
1.18.0