Unofficial python bindings for OpenXR VR/AP device access
Project description
pyopenxr
Unofficial python bindings for the OpenXR SDK to access VR and AR devices
This is a work in progress. Stay tuned.
Installation
pip install pyopenxr
Use
import xr
# Query the available VR/AR extensions
available = xr.enumerate_instance_extension_properties()
# Replace with whatever extensions are required for your
# particular application...
required = [xr.KHR_OPENGL_ENABLE_EXTENSION_NAME, ]
for prop in required:
assert prop in available
Pythonic naming convention
symbol | Python example | C example |
---|---|---|
function | xr.create_instance(...) |
xrCreateInstance(...) |
constant | xr.MAX_SYSTEM_NAME_SIZE |
XR_MAX_SYSTEM_NAME_SIZE |
struct name | xr.ExtensionProperties |
XrExtensionProperties |
type alias | xr.Version |
XrVersion |
enum type | xr.FormFactor |
xrFormFactor |
enum value | xr.FormFactor.HEAD_MOUNTED_DISPLAY |
XR_FORM_FACTOR_HEAD_MOUNTED_DISPLAY |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyopenxr-1.0.1901.tar.gz
(606.3 kB
view hashes)
Built Distribution
pyopenxr-1.0.1901-py3-none-any.whl
(612.2 kB
view hashes)
Close
Hashes for pyopenxr-1.0.1901-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57e138bc8269e6d66fa1ab380707e8f0ca40f86dec5b5e0a34583871f65f3d45 |
|
MD5 | 482ab6a975629ef4c2ef469bf95632b1 |
|
BLAKE2b-256 | 499b613cd6fa5f11a9dc8889176b0aee1db726208749be0984d5f021979b19a5 |