Python的OpenXR绑定。
openxr的Python项目详细描述
[![项目许可证](https://img.shields.io/badge/license-Public%20Domain-blue.svg)](https://unlicense.org) [![PyPI包](https://img.shields.io/pypi/v/openxr.svg)](https://pypi.org/project/openxr/) [![Python兼容性](https://img.shields.io/pypi/pyversions/openxr.svg)](https://pypi.org/project/openxr/)
OpenXR.py为[OpenXR](https://www.khronos.org/openxr/)实现Python绑定 [1.0](https://www.khronos.org/registry/OpenXR/specs/1.0/html/xrspec.html), 虚拟现实(VR)和 增强现实(AR)硬件。在
安装
$ pip3 install openxr
先决条件
- [Python](https://www.python.org)3.6+ 使用[ctypes](https://docs.python.org/3/library/ctypes.html)
- [OpenXR SDK](https://github.com/KhronosGroup/OpenXR-SDK)1.0.8+
示例
####加载库
import openxr
发展
我们推荐Debian11(又名[Bullseye](https://www.debian.org/releases/bullseye/)) 作为开发环境。如果你在Mac上,你可以在 使用[VMware Fusion](https://www.vmware.com/products/fusion.html)的虚拟机 或者[VirtualBox](https://www.virtualbox.org)。在
为OpenXR SDK的加载程序安装Debian软件包,如下所示:
$ apt install libopenxr-loader1
这是唯一需要的软件包,但请使用以下工具查找相关软件包:
$ apt search openxr
此外,您将需要一个OpenXR运行时为您的硬件。在 没有合适的供应商提供的运行时,看看开源吧 [Monado](https://monado.freedesktop.org)项目,它支持许多常见的 设备。在
另请参见
- 在[打开XR.rb](https://github.com/dryruby/openxr.rb): Ruby的OpenXR绑定。在
- 在[OpenXR.dart](https://github.com/drydart/openxr.dart): 用于飞镖和颤振的OpenXR绑定。在
- [非官方的OpenXR测试](https://github.com/artob/openxr-rspec): 一个非官方的OpenXR一致性测试套件。在
- 项目
标签: