Debian Codegraph @

3rdparty/osgXR/README.md

raw symbols SCIP
1 osgXR: Virtual Reality with OpenXR and OpenSceneGraph
2 =====================================================
3
4 This library is to allow Virtual Reality support to be added to
5 [OpenSceneGraph](http://www.openscenegraph.org/) applications, using the
6 [OpenXR](https://www.khronos.org/OpenXR/) standard.
7
8 Status:
9 * Still in development, contributions welcome. Plenty of work to do.
10 * APIs to support OpenXR VR display output in OpenSceneGraph apps.
11 * APIs to support OpenXR's action based input and haptic output for controller
12 interaction.
13 * OpenGL graphics bindings for Linux (X11/Xlib) and Windows (note that WMR
14 only supports DirectX bindings).
15
16 License: LGPL 2.1
17
18 Dependencies: OpenSceneGraph, OpenXR
19
20 Links:
21 * Matrix room: [#osgxr:hoganfam.uk](https://matrix.to/#/#osgxr:hoganfam.uk?via=hoganfam.uk)
22 * [OpenXR specifications](https://www.khronos.org/registry/OpenXR/#apispecs)
23
24
25 Installation
26 ------------
27
28 Something like this:
29 ```shell
30 mkdir build
31 cd build
32 cmake ..
33 make
34 make install
35 ```
36
37
38 Getting Started
39 ---------------
40
41 To import osgXR into a CMake based project, you can use the included CMake
42 module, adding something like this to your CMakeLists.txt:
43 ```cmake
44 find_package(osgXR 0.5.0 REQUIRED)
45
46 target_link_libraries(target
47 ..
48 osgXR::osgXR
49 )
50 ```
51
52 osgXR can also optionally be built as a subproject. Consider using ``git
53 subtree`` to import osgXR, then use something like this:
54 ```cmake
55 add_subdirectory(osgXR)
56
57 target_link_libraries(target
58 ..
59 osgXR
60 )
61 ```
62
63 If you have installed osgXR outside of the system prefix (CMake's default prefix
64 on UNIX systems is ``/usr/local``), you may need to tell CMake where to find it
65 when you configure the project. You can do this by defining ``osgXR_DIR`` when
66 invoking cmake, e.g. with the argument ``-DosgXR_DIR=$PREFIX/lib/cmake/osgXR``
67 where ``$PREFIX`` is osgXR's install prefix (``CMAKE_INSTALL_PREFIX``).
68
69
70 The Public API
71 --------------
72
73 See the [API documentation](docs/API.md) for details of the API.