- Notifications
You must be signed in to change notification settings - Fork1
Zig build package and bindings forhttps://github.com/ValveSoftware/openvr
License
NotificationsYou must be signed in to change notification settings
zig-gamedev/zopenvr
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Zig build package and bindings forOpenVR v2.2.3
Work in progress
| Interface | Status |
|---|---|
| Applications | ✅ |
| BlockQueue | |
| Chaperone | ✅ |
| ChaperoneSetup | |
| Compositor | ✅ (d3d12 only) |
| Debug | |
| DriverManager | |
| ExtendedDisplay | |
| HeadsetView | |
| Input | ✅ |
| IOBuffer | |
| Notifications | |
| Overlay | |
| OverlayView | |
| Paths | |
| Properties | |
| RenderModels | ✅ |
| Resources | |
| Screenshots | |
| Settings | |
| SpatialAnchors | |
| System | ✅ |
| TrackedCamera |
Examplebuild.zig:
pubfnbuild(b:*std.Build)!void {constexe=b.addExecutable(.{... });constzopenvr=b.dependency("zopenvr", .{});exe.root_module.addImport("zopenvr",zopenvr.module("zopenvr"));try@import("zopenvr").addLibraryPathsTo(zopenvr,exe);try@import("zopenvr").installOpenVR(zopenvr,&exe.step,target.result,.bin);@import("zopenvr").linkOpenVR(exe);}
Now in your code you may import and usezopenvr:
conststd=@import("std");constOpenVR=@import("zopenvr");pubfnmain()!void {...constopenvr=tryOpenVR.init(.scene);deferopenvr.deinit();constsystem=tryopenvr.system();constname=tryapp.system.allocTrackedDevicePropertyString(allocator,OpenVR.hmd,.tracking_system_name);deferallocator.free(name);...}
About
Zig build package and bindings forhttps://github.com/ValveSoftware/openvr
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.