Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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// Qt-Security score:significant reason:default
4
5
6#ifndef QSSGRENDERPICKRESULT_H
7#define QSSGRENDERPICKRESULT_H
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is part of the QtQuick3D API, with limited compatibility guarantees.
14// Usage of this API may make your code source and binary incompatible with
15// future versions of Qt.
16//
17
18#include <QtQuick3DRuntimeRender/qtquick3druntimerenderexports.h>
19#include <QtGui/qvectornd.h>
20#include <limits>
21
22QT_BEGIN_NAMESPACE
23
24class QSSGRenderGraphObject;
25
27{
28public:
29 const QSSGRenderGraphObject *m_hitObject = nullptr;
30 float m_distanceSq = std::numeric_limits<float>::max();
31 // The local coordinates in X,Y UV space where the hit occurred
33 // The position in world coordinates
35 // The position in local coordinates
37 // The normal of the hit face
39 // The normal of the hit face in world coordinates
41 // The subset index
42 int m_subset = 0;
44};
45
46Q_STATIC_ASSERT(std::is_trivially_destructible_v<QSSGRenderPickResult>);
47
48QT_END_NAMESPACE
49
50#endif // QSSGRENDERPICKRESULT_H
const QSSGRenderGraphObject * m_hitObject
Q_STATIC_ASSERT(sizeof(SharedImageHeader) % 4==0)