Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qssgrenderpickresult_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QSSGRENDERPICKRESULT_H
5#define QSSGRENDERPICKRESULT_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtQuick3DRuntimeRender/private/qssgrenderableobjects_p.h>
19#include <limits>
20
22
24{
26 float m_distanceSq = std::numeric_limits<float>::max();
27 // The local coordinates in X,Y UV space where the hit occurred
29 // The position in world coordinates
31 // The position in local coordinates
33 // The normal of the hit face
35 // The subset index
36 int m_subset = 0;
38};
39
40Q_STATIC_ASSERT(std::is_trivially_destructible<QSSGRenderPickResult>::value);
41
43{
47 bool m_wasPickConsumed = false;
48};
49
51
52#endif // QSSGRENDERPICKRESULT_H
The QVector2D class represents a vector or vertex in 2D space.
Definition qvectornd.h:31
The QVector3D class represents a vector or vertex in 3D space.
Definition qvectornd.h:171
Combined button and popup list for selecting options.
#define Q_STATIC_ASSERT(Condition)
Definition qassert.h:105
QSSGPickResultProcessResult(const QSSGRenderPickResult &inSrc, bool consumed)
QSSGPickResultProcessResult(const QSSGRenderPickResult &inSrc)
const QSSGRenderGraphObject * m_hitObject