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
qssgrenderpickresult.h
Go to the documentation of this file.
1// Copyright (C) 2023 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 part of the QtQuick3D API, with limited compatibility guarantees.
12// Usage of this API may make your code source and binary incompatible with
13// future versions of Qt.
14//
15
16#include <QtQuick3DRuntimeRender/qtquick3druntimerenderexports.h>
17#include <QtGui/qvectornd.h>
18#include <limits>
19
21
23
25{
26public:
28 float m_distanceSq = std::numeric_limits<float>::max();
29 // The local coordinates in X,Y UV space where the hit occurred
31 // The position in world coordinates
33 // The position in local coordinates
35 // The normal of the hit face
37 // The subset index
38 int m_subset = 0;
40};
41
42Q_STATIC_ASSERT(std::is_trivially_destructible_v<QSSGRenderPickResult>);
43
45
46#endif // QSSGRENDERPICKRESULT_H
const QSSGRenderGraphObject * m_hitObject
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:108