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 | #include "qseamlesscubemap.h" |
5 | #include "qrenderstate_p.h" |
6 | #include <private/qnode_p.h> |
7 | |
8 | QT_BEGIN_NAMESPACE |
9 | |
10 | namespace Qt3DRender { |
11 | |
12 | /*! |
13 | \class Qt3DRender::QSeamlessCubemap |
14 | \brief Enables seamless cubemap texture filtering. |
15 | \since 5.7 |
16 | \inmodule Qt3DRender |
17 | |
18 | When present in a state set, enables the seamless cubemap texture filtering |
19 | as provided by the GL_ARB_seamless_cubemap extension (if available). |
20 | */ |
21 | |
22 | /*! |
23 | \qmltype SeamlessCubemap |
24 | \brief Enables seamless cubemap texture filtering. |
25 | \since 5.7 |
26 | \inqmlmodule Qt3D.Render |
27 | \instantiates Qt3DRender::QSeamlessCubemap |
28 | \inherits RenderState |
29 | |
30 | When present in a state set, enables the seamless cubemap texture filtering |
31 | as provided by the GL_ARB_seamless_cubemap extension (if available). |
32 | */ |
33 | |
34 | |
35 | class QSeamlessCubemapPrivate : public QRenderStatePrivate |
36 | { |
37 | public: |
38 | QSeamlessCubemapPrivate() |
39 | : QRenderStatePrivate(Render::SeamlessCubemapMask) |
40 | { |
41 | } |
42 | |
43 | Q_DECLARE_PUBLIC(QSeamlessCubemap) |
44 | }; |
45 | |
46 | /*! |
47 | The constructor creates a new QSeamlessCubemap::QSeamlessCubemap instance |
48 | with the specified \a parent. |
49 | */ |
50 | QSeamlessCubemap::QSeamlessCubemap(QNode *parent) |
51 | : QRenderState(*new QSeamlessCubemapPrivate, parent) |
52 | { |
53 | } |
54 | |
55 | /*! \internal */ |
56 | QSeamlessCubemap::~QSeamlessCubemap() |
57 | { |
58 | } |
59 | |
60 | } // namespace Qt3DRender |
61 | |
62 | QT_END_NAMESPACE |
63 | |
64 | #include "moc_qseamlesscubemap.cpp" |
65 | |
66 | |