Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zig build package and bindings forOpenVR v2.2.3

Work in progress

InterfaceStatus
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

Getting started

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp