| 1 | // Copyright 2023, Collabora, Ltd.cxx . . $ `<file>/src/xrt/auxiliary/util/u_visibility_mask.h`/ |
| 2 | // SPDX-License-Identifier: BSL-1.0 |
| 3 | /*! |
| 4 | * @file |
| 5 | * @brief Visibility mask utilitary header |
| 6 | * @author Simon Zeni <[email protected]> |
| 7 | * @ingroup aux_util |
| 8 | */ |
| 9 | |
| 10 | #include "xrt/xrt_defines.h"cxx . . $ `<file>/src/xrt/include/xrt/xrt_defines.h`/ |
| 11 | #include "xrt/xrt_visibility_mask.h"cxx . . $ `<file>/src/xrt/include/xrt/xrt_visibility_mask.h`/ |
| 12 | |
| 13 | |
| 14 | #ifdef __cplusplus |
| 15 | extern "C" { |
| 16 | #endif |
| 17 | |
| 18 | |
| 19 | /*! |
| 20 | * Default visibility mask, only returns a very simple mask with four small |
| 21 | * triangles in each corner, scaled to the given FoV so it matches the OpenXR |
| 22 | * conventions. The caller must take care of de-allocating the mask once done |
| 23 | * with it. |
| 24 | * |
| 25 | * @ingroup aux_util |
| 26 | */ |
| 27 | void |
| 28 | u_visibility_mask_get_defaultcxx . . $ u_visibility_mask_get_default(34fd539b7191b88f).(enum xrt_visibility_mask_typecxx . . $ xrt_visibility_mask_type# type, |
| 29 | const struct xrt_fovcxx . . $ xrt_fov# *fov, |
| 30 | struct xrt_visibility_maskcxx . . $ xrt_visibility_mask# **out_mask); |
| 31 | |
| 32 | |
| 33 | #ifdef __cplusplus |
| 34 | } |
| 35 | #endif |