PanelClippingConfig


public final class PanelClippingConfig


Defines the clipping configuration for all panels within the Scene.

This setting cannot be applied to an individual panel within the Scene, it must apply to all panels.

Summary

Public constructors

PanelClippingConfig(boolean isDepthTestEnabled)

Public methods

final @NonNull PanelClippingConfig
copy(boolean isDepthTestEnabled)

Returns a copy of this configuration with the specified values updated.

boolean
equals(Object other)
int
final boolean

When true, enables depth testing for all panels in the Scene, allowing them to be drawn in an intuitive, distance-based way with respect to other objects in the scene, including other panels and the environment.

@NonNull String

Public constructors

PanelClippingConfig

Added in 1.0.0-alpha05
public PanelClippingConfig(boolean isDepthTestEnabled)

Public methods

copy

Added in 1.0.0-alpha05
public final @NonNull PanelClippingConfig copy(boolean isDepthTestEnabled)

Returns a copy of this configuration with the specified values updated.

Parameters
boolean isDepthTestEnabled

The new depth test enabled state.

Returns
@NonNull PanelClippingConfig

A new PanelClippingConfig instance with the updated values.

equals

public boolean equals(Object other)

hashCode

public int hashCode()

isDepthTestEnabled

Added in 1.0.0-alpha05
public final boolean isDepthTestEnabled()

When true, enables depth testing for all panels in the Scene, allowing them to be drawn in an intuitive, distance-based way with respect to other objects in the scene, including other panels and the environment. When false, all panels are rendered on top of any other non-depth-tested 3D content that were drawn before them, regardless of their actual distance (i.e., depth) from the camera. The false setting can be used to ensure panels are drawn on top of the virtual environment, i.e., they do not clip into the environment.

toString

public @NonNull String toString()