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_QTEXT2DMATERIAL_P_H
5#define QT3DEXTRAS_QTEXT2DMATERIAL_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 <Qt3DExtras/qt3dextras_global.h>
19#include <Qt3DRender/qmaterial.h>
20#include <QColor>
21#include <private/qglobal_p.h>
22
23QT_BEGIN_NAMESPACE
24
25namespace Qt3DExtras {
26
27class QText2DMaterialPrivate;
28
29class QText2DMaterial : public Qt3DRender::QMaterial
30{
31 Q_OBJECT
32
33public:
34 explicit QText2DMaterial(Qt3DCore::QNode *parent = nullptr);
35 ~QText2DMaterial();
36
37 void setColor(const QColor &color);
38 void setDistanceFieldTexture(Qt3DRender::QAbstractTexture *tex);
39
40private:
41 Q_DECLARE_PRIVATE(QText2DMaterial)
42};
43
44} // namespace Qt3DExtras
45
46QT_END_NAMESPACE
47
48#endif // QT3DEXTRAS_QTEXT2DMATERIAL_P_H
49

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