Package org.lwjgl.openxr
Class KHRVisibilityMask
- java.lang.Object
-
- org.lwjgl.openxr.KHRVisibilityMask
-
public class KHRVisibilityMask extends java.lang.ObjectThe KHR_visibility_mask extension.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringXR_KHR_VISIBILITY_MASK_EXTENSION_NAMEThe extension name.static intXR_KHR_visibility_mask_SPEC_VERSIONThe extension specification version.static intXR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR
XR_TYPE_VISIBILITY_MASK_KHRExtendsXrStructureType.static intXR_VISIBILITY_MASK_TYPE_HIDDEN_TRIANGLE_MESH_KHR
XR_VISIBILITY_MASK_TYPE_LINE_LOOP_KHR
XR_VISIBILITY_MASK_TYPE_VISIBLE_TRIANGLE_MESH_KHRXrVisibilityMaskTypeKHR - Visibility Mask Type
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intnxrGetVisibilityMaskKHR(XrSession session, int viewConfigurationType, int viewIndex, int visibilityMaskType, long visibilityMask)Unsafe version of:GetVisibilityMaskKHRstatic intxrGetVisibilityMaskKHR(XrSession session, int viewConfigurationType, int viewIndex, int visibilityMaskType, XrVisibilityMaskKHR visibilityMask)Gets visibility mask.
-
-
-
Field Detail
-
XR_KHR_visibility_mask_SPEC_VERSION
The extension specification version.
-
XR_KHR_VISIBILITY_MASK_EXTENSION_NAME
The extension name.
-
XR_TYPE_VISIBILITY_MASK_KHR, XR_TYPE_EVENT_DATA_VISIBILITY_MASK_CHANGED_KHR
ExtendsXrStructureType.Enum values:
-
XR_VISIBILITY_MASK_TYPE_HIDDEN_TRIANGLE_MESH_KHR, XR_VISIBILITY_MASK_TYPE_VISIBLE_TRIANGLE_MESH_KHR, XR_VISIBILITY_MASK_TYPE_LINE_LOOP_KHR
XrVisibilityMaskTypeKHR - Visibility Mask TypeEnumerant Descriptions
VISIBILITY_MASK_TYPE_HIDDEN_TRIANGLE_MESH_KHRrefers to a two dimensional triangle mesh on the view surface which should not be drawn to by the application.XrVisibilityMaskKHRrefers to a set of triangles identified by vertices and vertex indices. The index count will thus be a multiple of three. The triangle vertices will be returned in counter-clockwise order as viewed from the user perspective.VISIBILITY_MASK_TYPE_VISIBLE_TRIANGLE_MESH_KHRrefers to a two dimensional triangle mesh on the view surface which should be drawn to by the application.XrVisibilityMaskKHRrefers to a set of triangles identified by vertices and vertex indices. The index count will thus be a multiple of three. The triangle vertices will be returned in counter-clockwise order as viewed from the user perspective.VISIBILITY_MASK_TYPE_LINE_LOOP_KHRrefers to a single multi-segmented line loop on the view surface which encompasses the view area which should be drawn by the application. It is the border that exists between the visible and hidden meshes identified byVISIBILITY_MASK_TYPE_HIDDEN_TRIANGLE_MESH_KHRandVISIBILITY_MASK_TYPE_VISIBLE_TRIANGLE_MESH_KHR. The line is counter-clockwise, contiguous, and non-self crossing, with the last point implicitly connecting to the first point. There is one vertex per point, the index count will equal the vertex count, and the indices will refer to the vertices.
See Also
-
-
Method Detail
-
nxrGetVisibilityMaskKHR
public static int nxrGetVisibilityMaskKHR(XrSession session, int viewConfigurationType, int viewIndex, int visibilityMaskType, long visibilityMask)
Unsafe version of:GetVisibilityMaskKHR
-
xrGetVisibilityMaskKHR
public static int xrGetVisibilityMaskKHR(XrSession session, int viewConfigurationType, int viewIndex, int visibilityMaskType, XrVisibilityMaskKHR visibilityMask)
Gets visibility mask.C Specification
The
GetVisibilityMaskKHRfunction is defined as:XrResult xrGetVisibilityMaskKHR( XrSession session, XrViewConfigurationType viewConfigurationType, uint32_t viewIndex, XrVisibilityMaskTypeKHR visibilityMaskType, XrVisibilityMaskKHR* visibilityMask);Description
GetVisibilityMaskKHRretrieves the view mask for a given view. This function follows the two-call idiom for filling multiple buffers in a struct. Specifically, if eithervertexCapacityInputorindexCapacityInputis 0, the runtime must respond as if both fields were set to 0, returning the vertex count and index count throughvertexCountOutputorindexCountOutputrespectively. If a view mask for the specified view isn’t available, the returned vertex and index counts must be 0.Valid Usage (Implicit)
- The
XR_KHR_visibility_maskextension must be enabled prior to callingGetVisibilityMaskKHR sessionmust be a validXrSessionhandleviewConfigurationTypemust be a validXrViewConfigurationTypevaluevisibilityMaskTypemust be a validXrVisibilityMaskTypeKHRvaluevisibilityMaskmust be a pointer to anXrVisibilityMaskKHRstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
session- anXrSessionhandle previously created withCreateSession.viewConfigurationType- the view configuration from which to retrieve mask information.viewIndex- the individual view within the view configuration from which to retrieve mask information.visibilityMaskType- the type of visibility mask requested.visibilityMask- an input/output struct which specifies the view mask.
- The
-
-