Package org.lwjgl.ovr

Class OVRBoundaryTestResult

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

    public class OVRBoundaryTestResult
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Provides boundary test information.

    Member documentation

    • IsTriggering – True if the boundary system is being triggered. Note that due to fade in/out effects this may not exactly match visibility.
    • ClosestDistance – Distance to the closest play area or outer boundary surface
    • ClosestPoint – Closest point on the boundary surface
    • ClosestPointNormal – Unit surface normal of the closest boundary surface

    Layout

    
     struct ovrBoundaryTestResult {
         ovrBool IsTriggering;
         float ClosestDistance;
         ovrVector3f ClosestPoint;
         ovrVector3f ClosestPointNormal;
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • ISTRIGGERING, CLOSESTDISTANCE, CLOSESTPOINT, CLOSESTPOINTNORMAL

        The struct member offsets.
    • Constructor Detail

      • OVRBoundaryTestResult

        public OVRBoundaryTestResult​(java.nio.ByteBuffer container)
        Creates a OVRBoundaryTestResult instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • IsTriggering

        public boolean IsTriggering()
        Returns the value of the IsTriggering field.
      • ClosestDistance

        public float ClosestDistance()
        Returns the value of the ClosestDistance field.
      • ClosestPointNormal

        public OVRVector3f ClosestPointNormal()
        Returns a OVRVector3f view of the ClosestPointNormal field.
      • malloc

        public static OVRBoundaryTestResult malloc()
        Returns a new OVRBoundaryTestResult instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static OVRBoundaryTestResult calloc()
        Returns a new OVRBoundaryTestResult instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static OVRBoundaryTestResult create()
        Returns a new OVRBoundaryTestResult instance allocated with BufferUtils.
      • create

        public static OVRBoundaryTestResult create​(long address)
        Returns a new OVRBoundaryTestResult instance for the specified memory address.
      • createSafe

        @Nullable
        public static OVRBoundaryTestResult createSafe​(long address)
        Like create, but returns null if address is NULL.
      • mallocStack

        public static OVRBoundaryTestResult mallocStack()
        Returns a new OVRBoundaryTestResult instance allocated on the thread-local MemoryStack.
      • callocStack

        public static OVRBoundaryTestResult callocStack()
        Returns a new OVRBoundaryTestResult instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

        public static OVRBoundaryTestResult mallocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new OVRBoundaryTestResult instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • callocStack

        public static OVRBoundaryTestResult callocStack​(org.lwjgl.system.MemoryStack stack)
        Returns a new OVRBoundaryTestResult instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • mallocStack

        public static OVRBoundaryTestResult.Buffer mallocStack​(int capacity,
                                                               org.lwjgl.system.MemoryStack stack)
        Returns a new OVRBoundaryTestResult.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • callocStack

        public static OVRBoundaryTestResult.Buffer callocStack​(int capacity,
                                                               org.lwjgl.system.MemoryStack stack)
        Returns a new OVRBoundaryTestResult.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nIsTriggering

        public static boolean nIsTriggering​(long struct)
        Unsafe version of IsTriggering().
      • nClosestDistance

        public static float nClosestDistance​(long struct)
        Unsafe version of ClosestDistance().