1// Copyright (C) 2016 Klaralvdalens Datakonsult AB (KDAB).
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QT3DEXTRAS_DISTANCEFIELDTEXTRENDERER_P_P_H
5#define QT3DEXTRAS_DISTANCEFIELDTEXTRENDERER_P_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 for the convenience
12// of other Qt classes. 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/qentity_p.h>
19#include <Qt3DExtras/private/distancefieldtextrenderer_p.h>
20
21QT_BEGIN_NAMESPACE
22
23namespace Qt3DCore {
24class QGeometry;
25class QMaterial;
26class QAttribute;
27class QBuffer;
28}
29
30namespace Qt3DRender {
31class QGeometryRenderer;
32}
33
34namespace Qt3DExtras {
35
36class QText2DMaterial;
37
38class DistanceFieldTextRendererPrivate : public Qt3DCore::QEntityPrivate
39{
40public:
41 DistanceFieldTextRendererPrivate();
42 ~DistanceFieldTextRendererPrivate();
43
44 Q_DECLARE_PUBLIC(DistanceFieldTextRenderer)
45
46 void init();
47
48 Qt3DRender::QGeometryRenderer *m_renderer;
49 Qt3DCore::QGeometry *m_geometry;
50 Qt3DCore::QAttribute *m_positionAttr;
51 Qt3DCore::QAttribute *m_texCoordAttr;
52 Qt3DCore::QAttribute *m_indexAttr;
53 Qt3DCore::QBuffer *m_vertexBuffer;
54 Qt3DCore::QBuffer *m_indexBuffer;
55 QText2DMaterial *m_material;
56};
57
58} // namespace Qt3DExtras
59
60QT_END_NAMESPACE
61
62#endif // QT3DEXTRAS_DISTANCEFIELDTEXTRENDERER_P_P_H
63

source code of qt3d/src/extras/text/distancefieldtextrenderer_p_p.h