1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
/*=========================================================================
Program: Visualization Toolkit
Module: vtkOpenXRPlatform.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/**
* @file vtkOpenXRPlatform.h
* @brief Defines the window system being used and graphics extensions.
*
* While the window system (XR_USE_PLATFORM_WIN32/XR_USE_PLATFORM_XLIB) is
* automatically defined, one must define XR_USE_GRAPHICS_API_OPENGL or/and
* XR_USE_GRAPHICS_API_D3D11 before including this header, in order to
* define the required types for the graphics API being used.
*/
#ifndef vtkOpenXRPlatform_h
#define vtkOpenXRPlatform_h
// Needed for WIN32 and VTK_USE_X
#include "vtkRenderingOpenGLConfigure.h"
#include "vtk_glew.h"
#if defined(VTK_USE_X)
// X11 defines globally some names that conflict with things in these classes
// X11/Xutil.h contains "#define AllValues 0x000F"
// X11/Xlib.h contains "#define Status int"
#include "vtkGenericDataArray.h"
#include <vtksys/Status.hxx>
#endif
#ifdef _WIN32
#define XR_USE_PLATFORM_WIN32
#include "GL/gl.h"
#include "Unknwn.h"
#include "vtkWindows.h"
#endif
#ifdef VTK_USE_X
#define XR_USE_PLATFORM_XLIB
// Required headers for the XrGraphicsBindingOpenGLXlibKHR struct
#include <GL/glx.h>
#include <X11/Xlib.h>
#endif
#include <openxr_platform.h>
#include <openxr_reflection.h>
#include <XrGraphicsExtensions.h>
#endif
// VTK-HeaderTest-Exclude: vtkOpenXRPlatform.h
|