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