Write VR games in C! This project adds OpenVR support to raylib using the OpenVR C API. This project contains examples, documentation, and issue tracking while dhsavell/raylib (submoduled as raylib/) contains the raylib fork.
Raylib-openvr is still in a prototype state. It exposes tracking information for the HMD and two controllers, and renders to a device using raylib's existing stereo rendering facilities.
See the examples/
directory for some work-in-progress examples using the fork.
- Using vcpkg, install
openvr
- Clone this repository recursively
- Work on examples in
examples/
and raylib code in the submodule
- Understand that this project is still a work-in-progress!
- Using vcpkg, install
openvr
- Clone or submodule dhsavell/raylib into your project
- Ensure you have checked out the
openvr
branch - Using the source is recommended as the project is constantly being updated
- Ensure you have checked out the
- Use
add_subdirectory
to include it in your buildset(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) add_subdirectory("raylib") target_link_libraries(yourproject raylib)