The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

t/common: Sort builder definitions alphabetically

+31 -31
+31 -31
src/xrt/targets/common/target_builder_interface.h
··· 12 12 13 13 /* 14 14 * 15 - * Config checking. 15 + * Config checking, sorted alphabetically. 16 16 * 17 17 */ 18 18 19 - #if defined(XRT_BUILD_DRIVER_PSMV) || defined(XRT_BUILD_DRIVER_PSVR) || defined(XRT_DOXYGEN) 20 - #define T_BUILDER_RGB_TRACKING 19 + // Always enabled. 20 + #define T_BUILDER_LEGACY 21 + 22 + #if defined(XRT_BUILD_DRIVER_SURVIVE) || defined(XRT_BUILD_DRIVER_VIVE) || defined(XRT_DOXYGEN) 23 + #define T_BUILDER_LIGHTHOUSE 24 + #endif 25 + 26 + #if defined(XRT_BUILD_DRIVER_NS) 27 + #define T_BUILDER_NS 21 28 #endif 22 29 23 30 #if defined(XRT_BUILD_DRIVER_REMOTE) || defined(XRT_DOXYGEN) 24 31 #define T_BUILDER_REMOTE 25 32 #endif 26 33 27 - #if defined(XRT_BUILD_DRIVER_SURVIVE) || defined(XRT_BUILD_DRIVER_VIVE) || defined(XRT_DOXYGEN) 28 - #define T_BUILDER_LIGHTHOUSE 34 + #if defined(XRT_BUILD_DRIVER_PSMV) || defined(XRT_BUILD_DRIVER_PSVR) || defined(XRT_DOXYGEN) 35 + #define T_BUILDER_RGB_TRACKING 29 36 #endif 30 37 31 38 #if defined(XRT_BUILD_DRIVER_SIMULAVR) || defined(XRT_DOXYGEN) 32 39 #define T_BUILDER_SIMULAVR 33 40 #endif 34 - 35 - #if defined(XRT_BUILD_DRIVER_NS) 36 - #define T_BUILDER_NS 37 - #endif 38 - 39 - // Always enabled. 40 - #define T_BUILDER_LEGACY 41 41 42 42 43 43 /* 44 44 * 45 - * Setter upper creation functions. 45 + * Setter upper creation functions, sorted alphabetically. 46 46 * 47 47 */ 48 48 49 - #ifdef T_BUILDER_RGB_TRACKING 49 + #ifdef T_BUILDER_LEGACY 50 50 /*! 51 - * RGB tracking based drivers, like @ref drv_psmv and @ref drv_psvr. 51 + * Builder used as a fallback for drivers not converted to builders yet. 52 52 */ 53 53 struct xrt_builder * 54 - t_builder_rgb_tracking_create(void); 54 + t_builder_legacy_create(void); 55 55 #endif 56 56 57 - #ifdef T_BUILDER_REMOTE 57 + #ifdef T_BUILDER_LIGHTHOUSE 58 58 /*! 59 - * The remote driver builder. 59 + * Builder for Lighthouse-tracked devices (vive, index, tundra trackers, etc.) 60 60 */ 61 61 struct xrt_builder * 62 - t_builder_remote_create(void); 62 + t_builder_lighthouse_create(void); 63 63 #endif 64 64 65 - #ifdef T_BUILDER_LEGACY 65 + #ifdef T_BUILDER_NS 66 66 /*! 67 - * Builder used as a fallback for drivers not converted to builders yet. 67 + * Builder for NorthStar headsets 68 68 */ 69 69 struct xrt_builder * 70 - t_builder_legacy_create(void); 70 + t_builder_north_star_create(void); 71 71 #endif 72 72 73 - #ifdef T_BUILDER_LIGHTHOUSE 73 + #ifdef T_BUILDER_REMOTE 74 74 /*! 75 - * Builder for Lighthouse-tracked devices (vive, index, tundra trackers, etc.) 75 + * The remote driver builder. 76 76 */ 77 77 struct xrt_builder * 78 - t_builder_lighthouse_create(void); 78 + t_builder_remote_create(void); 79 79 #endif 80 80 81 - #ifdef T_BUILDER_SIMULAVR 81 + #ifdef T_BUILDER_RGB_TRACKING 82 82 /*! 83 - * Builder for SimulaVR headsets 83 + * RGB tracking based drivers, like @ref drv_psmv and @ref drv_psvr. 84 84 */ 85 85 struct xrt_builder * 86 - t_builder_simula_create(void); 86 + t_builder_rgb_tracking_create(void); 87 87 #endif 88 88 89 - #ifdef T_BUILDER_NS 89 + #ifdef T_BUILDER_SIMULAVR 90 90 /*! 91 - * Builder for NorthStar headsets 91 + * Builder for SimulaVR headsets 92 92 */ 93 93 struct xrt_builder * 94 - t_builder_north_star_create(void); 94 + t_builder_simula_create(void); 95 95 #endif