Monado OpenXR Runtime
u_visibility_mask.h
Go to the documentation of this file.
1 // Copyright 2023, Collabora, Ltd.
2 // SPDX-License-Identifier: BSL-1.0
3 /*!
4  * @file
5  * @brief Visibility mask utilitary header
6  * @author Simon Zeni <simon.zeni@collabora.com>
7  * @ingroup aux_util
8  */
9 
10 #include "xrt/xrt_defines.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
29  const struct xrt_fov *fov,
30  struct xrt_visibility_mask **out_mask);
31 
32 
33 #ifdef __cplusplus
34 }
35 #endif
void u_visibility_mask_get_default(enum xrt_visibility_mask_type type, const struct xrt_fov *fov, struct xrt_visibility_mask **out_mask)
Default visibility mask, only returns a very simple mask with four small triangles in each corner,...
Definition: u_visibility_mask.c:42
xrt_visibility_mask_type
Visibility mask, mirror of XrVisibilityMaskKHR.
Definition: xrt_defines.h:1541
Describes a projection matrix fov.
Definition: xrt_defines.h:486
Visibility mask helper, the indices and vertices are tightly packed after this struct.
Definition: xrt_visibility_mask.h:25
Common defines and enums for XRT.
Header defining visibility mask helper struct.