The open source OpenXR runtime

m/headers: Rename C++ headers to hpp and tidy headers

+19 -11
+2 -1
src/xrt/auxiliary/CMakeLists.txt
··· 4 4 set(MATH_SOURCE_FILES 5 5 math/m_api.h 6 6 math/m_base.cpp 7 - math/m_eigen_interop.h 7 + math/m_eigen_interop.hpp 8 8 math/m_hash.cpp 9 9 math/m_optics.c 10 10 math/m_quatexpmap.cpp 11 + math/m_vec2.h 11 12 ) 12 13 13 14 set(OGL_SOURCE_FILES
+3 -2
src/xrt/auxiliary/math/m_base.cpp
··· 8 8 * @ingroup aux_math 9 9 */ 10 10 11 + #include "math/m_api.h" 12 + #include "math/m_eigen_interop.hpp" 13 + 11 14 #include <Eigen/Core> 12 15 #include <Eigen/Geometry> 13 16 14 17 #include <assert.h> 15 18 16 - #include "math/m_api.h" 17 - #include "math/m_eigen_interop.h" 18 19 19 20 /* 20 21 *
+1
src/xrt/auxiliary/math/m_eigen_interop.h src/xrt/auxiliary/math/m_eigen_interop.hpp
··· 18 18 #include <Eigen/Core> 19 19 #include <Eigen/Geometry> 20 20 21 + 21 22 /*! 22 23 * @brief Wrap an internal quaternion struct in an Eigen type, const overload. 23 24 *
+1 -1
src/xrt/auxiliary/math/m_hash.cpp
··· 7 7 * @ingroup aux_math 8 8 */ 9 9 10 + #include "math/m_api.h" 10 11 #include <string> 11 - #include "m_api.h" 12 12 13 13 14 14 extern "C" size_t
+4 -2
src/xrt/auxiliary/math/m_optics.c
··· 8 8 */ 9 9 10 10 11 - #include "m_api.h" 11 + #include "math/m_api.h" 12 12 #include "util/u_debug.h" 13 + 13 14 #include <math.h> 15 + #include <stdio.h> 14 16 #include <assert.h> 15 - #include <stdio.h> 17 + 16 18 17 19 DEBUG_GET_ONCE_BOOL_OPTION(views, "MATH_DEBUG_VIEWS", false) 18 20
+3 -2
src/xrt/auxiliary/math/m_quatexpmap.cpp
··· 10 10 * Based in part on inc/osvr/Util/EigenQuatExponentialMap.h in OSVR-Core 11 11 */ 12 12 13 + #include "math/m_api.h" 14 + #include "math/m_eigen_interop.hpp" 15 + 13 16 #include <Eigen/Core> 14 17 #include <Eigen/Geometry> 15 18 16 19 #include <assert.h> 17 20 18 - #include "math/m_api.h" 19 - #include "math/m_eigen_interop.h" 20 21 21 22 // anonymous namespace for internal types 22 23 namespace {
+1
src/xrt/auxiliary/math/m_vec2.h
··· 15 15 16 16 #include <math.h> 17 17 18 + 18 19 #ifdef __cplusplus 19 20 extern "C" { 20 21 #endif
+2 -1
src/xrt/auxiliary/meson.build
··· 80 80 files( 81 81 'math/m_api.h', 82 82 'math/m_base.cpp', 83 - 'math/m_eigen_interop.h', 83 + 'math/m_eigen_interop.hpp', 84 84 'math/m_hash.cpp', 85 85 'math/m_optics.c', 86 86 'math/m_quatexpmap.cpp', 87 + 'math/m_vec2.h', 87 88 ), 88 89 include_directories: xrt_include, 89 90 dependencies: [eigen3],
+1 -1
src/xrt/auxiliary/tracking/t_imu.cpp
··· 11 11 #include "tracking/t_imu.h" 12 12 #include "tracking/t_imu_fusion.hpp" 13 13 14 - #include "math/m_eigen_interop.h" 14 + #include "math/m_eigen_interop.hpp" 15 15 #include "util/u_misc.h" 16 16 17 17 #include <memory>
+1 -1
src/xrt/auxiliary/tracking/t_tracker_psmv_fusion.cpp
··· 17 17 #include "tracking/t_tracker_psmv_fusion.hpp" 18 18 19 19 #include "math/m_api.h" 20 - #include "math/m_eigen_interop.h" 20 + #include "math/m_eigen_interop.hpp" 21 21 22 22 #include "util/u_misc.h" 23 23