Package org.lwjgl.ovr

Class OVRBoundaryTestResult

    • 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()
        True if the boundary system is being triggered. Note that due to fade in/out effects this may not exactly match visibility.
      • ClosestDistance

        public float ClosestDistance()
        Distance to the closest play area or outer boundary surface
      • ClosestPoint

        public OVRVector3f ClosestPoint()
        Closest point on the boundary surface
      • ClosestPointNormal

        public OVRVector3f ClosestPointNormal()
        Unit surface normal of the closest boundary surface
      • 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.
      • malloc

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

        public static OVRBoundaryTestResult calloc​(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
      • malloc

        public static OVRBoundaryTestResult.Buffer malloc​(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
      • calloc

        public static OVRBoundaryTestResult.Buffer calloc​(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().