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
qopenxrhelpers_p.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 QOPENXRHELPERS_H
5#define QOPENXRHELPERS_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
19#include <openxr/openxr.h>
20#include <QtQuick3DXr/qtquick3dxrglobal.h>
21#include <QQuaternion>
22#include <QString>
23#include <QVector3D>
24
26
28{
29QString getXrResultAsString(XrResult result, XrInstance instance);
30bool checkXrResult(XrResult result, XrInstance instance);
31
32inline QQuaternion toQQuaternion(const XrQuaternionf &q)
33{
34 return { q.w, q.x, q.y, q.z };
35}
36
37inline QVector3D toQVector(const XrVector3f &v)
38{
39 return { v.x * 100, v.y * 100, v.z * 100 };
40}
41}
42
44
45#endif // QOPENXRHELPERS_H
The QQuaternion class represents a quaternion consisting of a vector and scalar.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
The QVector3D class represents a vector or vertex in 3D space.
Definition qvectornd.h:171
constexpr float x() const noexcept
Returns the x coordinate of this point.
Definition qvectornd.h:670
QQuaternion toQQuaternion(const XrQuaternionf &q)
bool checkXrResult(XrResult result, XrInstance instance)
QString getXrResultAsString(XrResult result, XrInstance instance)
QVector3D toQVector(const XrVector3f &v)
Combined button and popup list for selecting options.
GLsizei const GLfloat * v
[13]
GLdouble GLdouble GLdouble GLdouble q
Definition qopenglext.h:259
GLuint64EXT * result
[6]