OpenXRAndroidViewportFeatheringExtension
Inherits: OpenXRExtensionWrapper
Allow getting the viewport feathering insets via XR_ANDROID_viewport_feathering.
Description
Allow getting the viewport feathering insets via XR_ANDROID_viewport_feathering.
Methods
Rect2i |
get_display_safe_area ( int view ) const |
bool |
is_enabled ( ) const |
Method Descriptions
Rect2i get_display_safe_area ( int view ) const
Returns a Rect2i representing the safe area to put UI elements, such that they won't overlap any viewport feathering.
If the XR_ANDROID_viewport_feathering extension isn't enabled or supported, this will return a Rect2i with a size of Vector2i(0, 0).
bool is_enabled ( ) const
Returns true if this extension is supported on this device; otherwise, false.