SGCT master (487fac4)
Simple Graphics Cluster Toolkit
Loading...
Searching...
No Matches
openxr.h
Go to the documentation of this file.
1/*****************************************************************************************
2 * SGCT *
3 * Simple Graphics Cluster Toolkit *
4 * *
5 * Copyright (c) 2012-2026 *
6 * For conditions of distribution and use, see copyright notice in LICENSE.md *
7 ****************************************************************************************/
8
9#ifndef __SGCT__OPENXR__H__
10#define __SGCT__OPENXR__H__
11
12#ifdef SGCT_HAS_OPENXR
13
14#include <sgct/definitions.h>
15#include <sgct/sgctexports.h>
16#include <glm/glm.hpp>
17
18namespace sgct { class Window; }
19
20namespace sgct::openxr {
22 SGCT_EXPORT void initialize(float nearClip, float farClip);
23
25 SGCT_EXPORT void shutdown();
26
27 SGCT_EXPORT bool isHMDActive();
28
29 SGCT_EXPORT ivec2 eyeResolution(FrustumMode eye);
30
32 SGCT_EXPORT void copyWindowToHMD(Window* win);
33
34 SGCT_EXPORT glm::mat4 currentViewProjectionMatrix(FrustumMode eye);
35
37 SGCT_EXPORT void updatePoses();
38
40 SGCT_EXPORT void updateHMDMatrices(float nearClip, float farClip);
41
42 SGCT_EXPORT glm::mat4 eyeProjectionMatrix(FrustumMode eye, float nearClip, float farClip);
43 SGCT_EXPORT glm::mat4 eyeToHeadTransform(FrustumMode eye);
44
45 SGCT_EXPORT glm::mat4 poseMatrix();
46 SGCT_EXPORT glm::quat inverseRotation(glm::mat4 poseMat);
47} // namespace sgct::openxr
48
49#endif // SGCT_HAS_OPENXR
50#endif // __SGCT__OPENXR__H__
Definition window.h:46
Definition actions.h:16