VTK  9.5.20250718
vtkOpenXRPlatform.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
13#ifndef vtkOpenXRPlatform_h
14#define vtkOpenXRPlatform_h
15
16// Needed for WIN32 and VTK_USE_X
17#include "vtkRenderingOpenGLConfigure.h"
18#include "vtk_glad.h"
19
20#if defined(VTK_USE_X)
21// X11 defines globally some names that conflict with things in these classes
22// X11/Xutil.h contains "#define AllValues 0x000F"
23// X11/Xlib.h contains "#define Status int"
24#include "vtkGenericDataArray.h"
25#include <vtksys/Status.hxx>
26#endif
27
28#ifdef _WIN32
29#define XR_USE_PLATFORM_WIN32
30#include "Unknwn.h"
31#include "vtkWindows.h"
32#endif
33
34#ifdef VTK_USE_X
35#define XR_USE_PLATFORM_XLIB
36// Required headers for the XrGraphicsBindingOpenGLXlibKHR struct
37#include <X11/Xlib.h>
38#include <vtkglad/include/glad/glx.h>
39#endif
40
41#include <openxr/openxr_platform.h>
42#include <openxr/openxr_reflection.h>
43
45
46#endif
47// VTK-HeaderTest-Exclude: vtkOpenXRPlatform.h
Load OpenXR extensions for the defined graphics backend.