Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qssgrenderdefaultmaterial.cpp
Go to the documentation of this file.
1// Copyright (C) 2008-2012 NVIDIA Corporation.
2// Copyright (C) 2019 The Qt Company Ltd.
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
4
5#include <QtQuick3DRuntimeRender/private/qssgrenderdefaultmaterial_p.h>
6#include <QtQuick3DRuntimeRender/private/qssgshadermaterialadapter_p.h>
7
9
12{
13 Q_ASSERT(type == QSSGRenderGraphObject::Type::DefaultMaterial ||
14 type == QSSGRenderGraphObject::Type::PrincipledMaterial ||
15 type == QSSGRenderGraphObject::Type::SpecularGlossyMaterial);
16 if (type == QSSGRenderGraphObject::Type::PrincipledMaterial) {
20 }
21
23}
24
29
34
40
45
47{
48 m_flags |= FlagT(Flags::Dirty);
49}
50
52{
53 m_flags &= ~FlagT(Flags::Dirty);
54}
55
57{
58 if (alwaysDirty)
59 m_flags |= FlagT(Flags::AlwaysDirty);
60 else
61 m_flags &= ~FlagT(Flags::AlwaysDirty);
62}
63
Combined button and popup list for selecting options.
GLenum type
#define Q_ASSERT(cond)
Definition qrandom.cpp:47
std::underlying_type_t< Flags > FlagT
QSSGShaderMaterialAdapter * adapter
QSSGShaderMaterialAdapter * adapter
QSSGRenderDefaultMaterial(Type type=Type::DefaultMaterial)
static QSSGShaderMaterialAdapter * create(const QSSGRenderGraphObject &materialNode)
Definition moc.h:23