diff options
author | Julian Eisel <julian@blender.org> | 2020-03-26 23:03:42 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-03-26 23:18:45 +0300 |
commit | c94b6209861ca7cc3985b53474feed7d94c0221a (patch) | |
tree | 752054f0dca1338cda5cf8ad4f6d18573fcca3b9 /intern/ghost/intern/GHOST_Xr_openxr_includes.h | |
parent | 357ed79cb93f9d655501a828c6cddd68282de62d (diff) | |
parent | afb1a64ccb81b7ed792f64151986f40f53af8da5 (diff) |
Merge branch 'master' into wm-drag-drop-rewrite
Diffstat (limited to 'intern/ghost/intern/GHOST_Xr_openxr_includes.h')
-rw-r--r-- | intern/ghost/intern/GHOST_Xr_openxr_includes.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_Xr_openxr_includes.h b/intern/ghost/intern/GHOST_Xr_openxr_includes.h new file mode 100644 index 00000000000..925d6037750 --- /dev/null +++ b/intern/ghost/intern/GHOST_Xr_openxr_includes.h @@ -0,0 +1,52 @@ +/* + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +/** \file + * \ingroup GHOST + * + * \note This is taken mostly from the OpenXR SDK, but with modified D3D versions (e.g. d3d11_4.h + * -> d3d11.h). Take care for that when updating, we don't want to require newest Win SDKs to be + * installed. + */ + +#ifndef __GHOST_XR_SYSTEM_INCLUDES_H__ +#define __GHOST_XR_SYSTEM_INCLUDES_H__ + +/* Platform headers */ +#ifdef XR_USE_PLATFORM_WIN32 +# define WIN32_LEAN_AND_MEAN +# define NOMINMAX +# include <windows.h> +#endif + +/* Graphics headers */ +#ifdef XR_USE_GRAPHICS_API_D3D10 +# include <d3d10_1.h> +#endif +#ifdef XR_USE_GRAPHICS_API_D3D11 +# include <d3d11.h> +#endif +#ifdef XR_USE_GRAPHICS_API_D3D12 +# include <d3d12.h> +#endif +#ifdef WITH_X11 +# include <GL/glxew.h> +#endif + +#include <openxr/openxr.h> +#include <openxr/openxr_platform.h> + +#endif /* __GHOST_XR_SYSTEM_INCLUDES_H__ */ |