VTK  9.3.0
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_glew.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 "GL/gl.h"
31 #include "Unknwn.h"
32 #include "vtkWindows.h"
33 #endif
34 
35 #ifdef VTK_USE_X
36 #define XR_USE_PLATFORM_XLIB
37 // Required headers for the XrGraphicsBindingOpenGLXlibKHR struct
38 #include <GL/glx.h>
39 #include <X11/Xlib.h>
40 #endif
41 
42 #include <openxr_platform.h>
43 #include <openxr_reflection.h>
44 
45 #include <XrGraphicsExtensions.h>
46 
47 #endif
48 // VTK-HeaderTest-Exclude: vtkOpenXRPlatform.h
Load OpenXR extensions for the defined graphics backend.