1// Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
2// Copyright (C) 2016 The Qt Company Ltd and/or its subsidiary(-ies).
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#include "qrenderstate.h"
6#include "qrenderstate_p.h"
7
8QT_BEGIN_NAMESPACE
9
10namespace Qt3DRender {
11
12/*!
13 \class Qt3DRender::QRenderState
14 \brief An abstract base class for all render states.
15 \since 5.7
16 \ingroup renderstates
17 \inmodule Qt3DRender
18
19 A Qt3DRender::QRenderState class is abstract base class for all render states.
20 One can not instantiate QRenderState directly, but through its subclasses.
21 */
22
23/*!
24 \qmltype RenderState
25 \inqmlmodule Qt3D.Render
26 \brief An abstract base type for all render states.
27 \since 5.7
28 \inherits Node
29 \instantiates Qt3DRender::QRenderState
30 \ingroup renderstates
31
32 A RenderState type is abstract base class for all render states.
33 One can not instantiate RenderState directly, but through its subclasses.
34 */
35
36/*! \internal */
37QRenderStatePrivate::QRenderStatePrivate(Render::StateMask type)
38 : QNodePrivate(),
39 m_type(type)
40{
41}
42
43/*! \internal */
44QRenderStatePrivate::~QRenderStatePrivate()
45{
46}
47
48/*! \internal */
49QRenderStatePrivate *QRenderStatePrivate::get(QRenderState *state)
50{
51 return state->d_func();
52}
53
54/*! \internal */
55const QRenderStatePrivate *QRenderStatePrivate::get(const QRenderState *state)
56{
57 return state->d_func();
58}
59
60/*! \internal */
61QRenderState::~QRenderState()
62{
63}
64
65/*! \internal */
66QRenderState::QRenderState(QRenderStatePrivate &dd, QNode *parent)
67 : QNode(dd, parent)
68{
69}
70
71} // namespace Qt3DRender
72
73QT_END_NAMESPACE
74
75#include "moc_qrenderstate.cpp"
76

source code of qt3d/src/render/renderstates/qrenderstate.cpp