|
Enpose API — C
Enpose 6-DoF tracking API
|
C applications use the Enpose tracking API through the C ABI exported by the enpose_api shared library. The interface is declared in the SDK header enpose_api.h.
In your own CMake project, link the C target — it pulls in the header and the shared library transitively:
(In an in-tree / FetchContent build the same target is provided without find_package; see the top-level README.)
example.c is a complete discover-and-stream program. From the SDK's examples/c directory:
The example's CMakeLists.txt finds the SDK's CMake config automatically (it sits two levels up under lib/cmake/enpose_api), so no -DCMAKE_PREFIX_PATH is needed. At runtime the program needs to find the shared library — e.g. LD_LIBRARY_PATH=<sdk>/lib ./build/enpose_example.
The full API reference — every function, type, and field, generated from enpose_api.h — is published at https://enpose.tech/docs/c/.