1// Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4#ifndef QT3DEXTRAS_QEXTRUDEDTEXTGEOMETRY_P_H
5#define QT3DEXTRAS_QEXTRUDEDTEXTGEOMETRY_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 <Qt3DCore/private/qgeometry_p.h>
19#include <Qt3DExtras/qextrudedtextgeometry.h>
20#include <QFont>
21
22QT_BEGIN_NAMESPACE
23
24namespace Qt3DCore {
25
26class QAttribute;
27class QBuffer;
28
29} // namespace Qt3DCore
30
31namespace Qt3DExtras {
32
33class QExtrudedTextGeometry;
34
35class QExtrudedTextGeometryPrivate : public Qt3DCore::QGeometryPrivate
36{
37public:
38 QExtrudedTextGeometryPrivate();
39 void init();
40 void update() override;
41
42 QString m_text;
43 QFont m_font;
44 float m_depth;
45 float m_edgeSplitAngle;
46
47 Qt3DCore::QAttribute *m_positionAttribute;
48 Qt3DCore::QAttribute *m_normalAttribute;
49 Qt3DCore::QAttribute *m_indexAttribute;
50 Qt3DCore::QBuffer *m_vertexBuffer;
51 Qt3DCore::QBuffer *m_indexBuffer;
52
53 Q_DECLARE_PUBLIC(QExtrudedTextGeometry)
54};
55
56} // namespace Qt3DExtras
57
58QT_END_NAMESPACE
59
60#endif // QT3DEXTRAS_QEXTRUDEDTEXTGEOMETRY_P_H
61

source code of qt3d/src/extras/3dtext/qextrudedtextgeometry_p.h