Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pyopenxr

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyopenxr

Unofficial python bindings for OpenXR VR/AP device access

  • 1.1.4001
  • PyPI
  • Socket score

Maintainers
1

pyopenxr

Unofficial python bindings for the OpenXR SDK to access VR and AR devices

pyopenxr is a python developer SDK with features for device tracking and rapid virtual reality prototyping using the headset-agnostic OpenXR API.

Build Status Documentation Status

hello_xr1

Installing pyopenxr

pip install pyopenxr

Using pyopenxr

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

Study the complete working hello_xr.py example at https://github.com/cmbruns/pyopenxr_examples

Pythonic naming conventions in pyopenxr

symbolPython exampleC example
functionxr.create_instance(...)xrCreateInstance(...)
constantxr.MAX_SYSTEM_NAME_SIZEXR_MAX_SYSTEM_NAME_SIZE
struct namexr.ExtensionPropertiesXrExtensionProperties
type aliasxr.VersionXrVersion
enum typexr.FormFactorxrFormFactor
enum valuexr.FormFactor.HEAD_MOUNTED_DISPLAYXR_FORM_FACTOR_HEAD_MOUNTED_DISPLAY
handlexr.InstanceXrInstance

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc