VTK  9.2.6
vtkOpenXR.h
Go to the documentation of this file.
1 #ifndef vtkOpenXR_h
2 #define vtkOpenXR_h
3 
4 // Needed for WIN32 and VTK_USE_X
5 #include "vtkRenderingOpenGLConfigure.h"
6 #include "vtk_glew.h"
7 
8 #if defined(VTK_USE_X)
9 // X11 defines globally some names that conflict with things in these classes
10 // X11/Xutil.h contains "#define AllValues 0x000F"
11 // X11/Xlib.h contains "#define Status int"
12 #include "vtkGenericDataArray.h"
13 #include <vtksys/Status.hxx>
14 #endif
15 
16 #ifdef _WIN32
17 #define XR_USE_PLATFORM_WIN32
18 #include "GL/gl.h"
19 #include "Unknwn.h"
20 #include "vtkWindows.h"
21 #endif
22 
23 #ifdef VTK_USE_X
24 #define XR_USE_PLATFORM_XLIB
25 // Required headers for the XrGraphicsBindingOpenGLXlibKHR struct
26 #include <GL/glx.h>
27 #include <X11/Xlib.h>
28 #endif
29 
30 // Needed for XR_KHR_OPENGL_ENABLE_EXTENSION_NAME
31 // We only supports OpenGL
32 #define XR_USE_GRAPHICS_API_OPENGL
33 
34 #include <openxr.h>
35 #include <openxr_platform.h>
36 #include <openxr_reflection.h>
37 
38 #include "XrExtensions.h"
39 
40 #define HAND_COUNT 2
41 
42 #define LEFT_EYE 0
43 #define RIGHT_EYE 1
44 
45 #endif
46 // VTK-HeaderTest-Exclude: vtkOpenXR.h