Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qssgrenderableimage_p.h
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#ifndef QSSG_RENDERABLE_IMAGE_H
6#define QSSG_RENDERABLE_IMAGE_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtQuick3DRuntimeRender/private/qtquick3druntimerenderglobal_p.h>
20#include <QtQuick3DRuntimeRender/private/qssgrenderimage_p.h>
21
23
24// Some precomputed information on a given image. When generating a renderable,
25// the layer preparation step goes through all the possible images on a
26// material (which includes all regular texture maps, but does not include
27// light probes or custom texture properties for custom materials), and for
28// each valid image it generates, if not already done, the QRhiTexture (for the
29// current scene's window, and so render thread), and calculates some other
30// data and flags.
31
33{
34 enum class Type : quint8 {
35 Unknown = 0,
36 Diffuse,
37 Opacity,
40 Bump,
42 Normal,
48 Height,
54 };
59 QSSGRenderableImage(Type inMapType, const QSSGRenderImage &inImageNode, const QSSGRenderImageTexture &inTexture)
60 : m_imageNode(inImageNode), m_texture(inTexture), m_nextImage(nullptr), m_mapType(inMapType)
61 {
62 }
63};
65#endif
Combined button and popup list for selecting options.
unsigned char quint8
Definition qtypes.h:41
QObject::connect nullptr
QSSGRenderImageTexture m_texture
QSSGRenderableImage * m_nextImage
QSSGRenderableImage(Type inMapType, const QSSGRenderImage &inImageNode, const QSSGRenderImageTexture &inTexture)
const QSSGRenderImage & m_imageNode
Definition moc.h:24