1 | /**************************************************************************** |
2 | ** |
3 | ** Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB). |
4 | ** Copyright (C) 2016 The Qt Company Ltd and/or its subsidiary(-ies). |
5 | ** Contact: https://www.qt.io/licensing/ |
6 | ** |
7 | ** This file is part of the Qt3D module of the Qt Toolkit. |
8 | ** |
9 | ** $QT_BEGIN_LICENSE:LGPL$ |
10 | ** Commercial License Usage |
11 | ** Licensees holding valid commercial Qt licenses may use this file in |
12 | ** accordance with the commercial license agreement provided with the |
13 | ** Software or, alternatively, in accordance with the terms contained in |
14 | ** a written agreement between you and The Qt Company. For licensing terms |
15 | ** and conditions see https://www.qt.io/terms-conditions. For further |
16 | ** information use the contact form at https://www.qt.io/contact-us. |
17 | ** |
18 | ** GNU Lesser General Public License Usage |
19 | ** Alternatively, this file may be used under the terms of the GNU Lesser |
20 | ** General Public License version 3 as published by the Free Software |
21 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the |
22 | ** packaging of this file. Please review the following information to |
23 | ** ensure the GNU Lesser General Public License version 3 requirements |
24 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. |
25 | ** |
26 | ** GNU General Public License Usage |
27 | ** Alternatively, this file may be used under the terms of the GNU |
28 | ** General Public License version 2.0 or (at your option) the GNU General |
29 | ** Public license version 3 or any later version approved by the KDE Free |
30 | ** Qt Foundation. The licenses are as published by the Free Software |
31 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 |
32 | ** included in the packaging of this file. Please review the following |
33 | ** information to ensure the GNU General Public License requirements will |
34 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and |
35 | ** https://www.gnu.org/licenses/gpl-3.0.html. |
36 | ** |
37 | ** $QT_END_LICENSE$ |
38 | ** |
39 | ****************************************************************************/ |
40 | |
41 | #ifndef QT3DRENDER_RENDER_RENDERSTATES_H |
42 | #define QT3DRENDER_RENDER_RENDERSTATES_H |
43 | |
44 | // |
45 | // W A R N I N G |
46 | // ------------- |
47 | // |
48 | // This file is not part of the Qt API. It exists for the convenience |
49 | // of other Qt classes. This header file may change from version to |
50 | // version without notice, or even be removed. |
51 | // |
52 | // We mean it. |
53 | // |
54 | |
55 | #include <Qt3DRender/private/genericstate_p.h> |
56 | |
57 | QT_BEGIN_NAMESPACE |
58 | |
59 | namespace Qt3DRender { |
60 | namespace Render { |
61 | |
62 | class Q_3DRENDERSHARED_PRIVATE_EXPORT BlendEquationArguments : public GenericState<BlendEquationArguments, BlendEquationArgumentsMask, GLenum, GLenum, GLenum, GLenum, bool, int> |
63 | { |
64 | public: |
65 | void updateProperties(const QRenderState *node) override; |
66 | }; |
67 | |
68 | class Q_3DRENDERSHARED_PRIVATE_EXPORT BlendEquation : public GenericState<BlendEquation, BlendStateMask, GLenum> |
69 | { |
70 | public: |
71 | void updateProperties(const QRenderState *node) override; |
72 | }; |
73 | |
74 | class Q_3DRENDERSHARED_PRIVATE_EXPORT AlphaFunc : public GenericState<AlphaFunc, AlphaTestMask, GLenum, GLclampf> |
75 | { |
76 | public: |
77 | void updateProperties(const QRenderState *node) override; |
78 | }; |
79 | |
80 | class Q_3DRENDERSHARED_PRIVATE_EXPORT MSAAEnabled : public GenericState<MSAAEnabled, MSAAEnabledStateMask, GLboolean> |
81 | { |
82 | public: |
83 | void updateProperties(const QRenderState *node) override; |
84 | }; |
85 | |
86 | class Q_3DRENDERSHARED_PRIVATE_EXPORT DepthRange : public GenericState<DepthRange, DepthRangeMask, double, double> |
87 | { |
88 | public: |
89 | void updateProperties(const QRenderState *node) override; |
90 | }; |
91 | |
92 | class Q_3DRENDERSHARED_PRIVATE_EXPORT DepthTest : public GenericState<DepthTest, DepthTestStateMask, GLenum> |
93 | { |
94 | public: |
95 | void updateProperties(const QRenderState *node) override; |
96 | }; |
97 | |
98 | class Q_3DRENDERSHARED_PRIVATE_EXPORT RasterMode : public GenericState<RasterMode, RasterModeMask, GLenum, GLenum> |
99 | { |
100 | public: |
101 | void updateProperties(const QRenderState *node) override; |
102 | }; |
103 | |
104 | class Q_3DRENDERSHARED_PRIVATE_EXPORT NoDepthMask : public GenericState<NoDepthMask, DepthWriteStateMask, GLboolean> |
105 | { |
106 | public: |
107 | void updateProperties(const QRenderState *node) override; |
108 | }; |
109 | |
110 | class Q_3DRENDERSHARED_PRIVATE_EXPORT CullFace : public GenericState<CullFace, CullFaceStateMask, GLenum> |
111 | { |
112 | public: |
113 | void updateProperties(const QRenderState *node) override; |
114 | }; |
115 | |
116 | class Q_3DRENDERSHARED_PRIVATE_EXPORT FrontFace : public GenericState<FrontFace, FrontFaceStateMask, GLenum> |
117 | { |
118 | public: |
119 | void updateProperties(const QRenderState *node) override; |
120 | }; |
121 | |
122 | class Q_3DRENDERSHARED_PRIVATE_EXPORT Dithering : public GenericState<Dithering, DitheringStateMask> |
123 | { |
124 | }; |
125 | |
126 | class Q_3DRENDERSHARED_PRIVATE_EXPORT ScissorTest : public GenericState<ScissorTest, ScissorStateMask, int, int, int, int> |
127 | { |
128 | public: |
129 | void updateProperties(const QRenderState *node) override; |
130 | }; |
131 | |
132 | class Q_3DRENDERSHARED_PRIVATE_EXPORT StencilTest : public GenericState<StencilTest, StencilTestStateMask, GLenum, int, uint, GLenum, int, uint> |
133 | { |
134 | public: |
135 | void updateProperties(const QRenderState *node) override; |
136 | }; |
137 | |
138 | class Q_3DRENDERSHARED_PRIVATE_EXPORT AlphaCoverage : public GenericState<AlphaCoverage, AlphaCoverageStateMask> |
139 | { |
140 | }; |
141 | |
142 | class Q_3DRENDERSHARED_PRIVATE_EXPORT PointSize : public GenericState<PointSize, PointSizeMask, bool, GLfloat> |
143 | { |
144 | public: |
145 | void updateProperties(const QRenderState *node) override; |
146 | }; |
147 | |
148 | class Q_3DRENDERSHARED_PRIVATE_EXPORT PolygonOffset : public GenericState<PolygonOffset, PolygonOffsetStateMask, GLfloat, GLfloat> |
149 | { |
150 | public: |
151 | |
152 | void updateProperties(const QRenderState *node) override; |
153 | }; |
154 | |
155 | class Q_3DRENDERSHARED_PRIVATE_EXPORT ColorMask : public GenericState<ColorMask, ColorStateMask, GLboolean, GLboolean, GLboolean, GLboolean> |
156 | { |
157 | public: |
158 | void updateProperties(const QRenderState *node) override; |
159 | }; |
160 | |
161 | class Q_3DRENDERSHARED_PRIVATE_EXPORT ClipPlane : public GenericState<ClipPlane, ClipPlaneMask, int, QVector3D, float> |
162 | { |
163 | public: |
164 | void updateProperties(const QRenderState *node) override; |
165 | }; |
166 | |
167 | class Q_3DRENDERSHARED_PRIVATE_EXPORT SeamlessCubemap : public GenericState<SeamlessCubemap, SeamlessCubemapMask> |
168 | { |
169 | }; |
170 | |
171 | class Q_3DRENDERSHARED_PRIVATE_EXPORT StencilOp : public GenericState<StencilOp, StencilOpMask, GLenum, GLenum, GLenum, GLenum, GLenum, GLenum> |
172 | { |
173 | public: |
174 | void updateProperties(const QRenderState *node) override; |
175 | }; |
176 | |
177 | class Q_3DRENDERSHARED_PRIVATE_EXPORT StencilMask : public GenericState<StencilMask, StencilWriteStateMask, uint, uint> |
178 | { |
179 | public: |
180 | void updateProperties(const QRenderState *node) override; |
181 | }; |
182 | |
183 | class Q_3DRENDERSHARED_PRIVATE_EXPORT LineWidth : public GenericState<LineWidth, LineWidthMask, GLfloat, bool> |
184 | { |
185 | public: |
186 | void updateProperties(const QRenderState *node) override; |
187 | }; |
188 | |
189 | } // namespace Render |
190 | } // namespace Qt3DRender |
191 | |
192 | QT_END_NAMESPACE |
193 | |
194 | #endif // QT3DRENDER_RENDER_RENDERSTATES_H |
195 | |