1 | // Copyright (C) 2023 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
3 | |
4 | // |
5 | // W A R N I N G |
6 | // ------------- |
7 | // |
8 | // This file is not part of the QtGraphs API. It exists purely as an |
9 | // implementation detail. This header file may change from version to |
10 | // version without notice, or even be removed. |
11 | // |
12 | // We mean it. |
13 | |
14 | #ifndef GRAPHSGLOBAL_P_H |
15 | #define GRAPHSGLOBAL_P_H |
16 | |
17 | #include "qgraphsglobal.h" |
18 | #include <QtGui/qvector3d.h> |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | // Constants used in several files |
23 | // Distance from camera to origin |
24 | static const float cameraDistance = 6.0f; |
25 | // Size of font to be used in label texture rendering. Doesn't affect the actual font size. |
26 | static const int textureFontSize = 50; |
27 | static const QVector3D zeroVector = QVector3D(0.0f, 0.0f, 0.0f); |
28 | static const QVector3D upVector = QVector3D(0.0f, 1.0f, 0.0f); |
29 | static const float itemAlpha = 0.0f; |
30 | static const qreal gradientTextureHeight = 1.; |
31 | static const qreal gradientTextureWidth = 8192.; |
32 | |
33 | QT_END_NAMESPACE |
34 | |
35 | #endif |
36 | |