Package org.lwjgl.ovr
Class OVRBoundaryTestResult
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Provides boundary test information.
Layout
struct ovrBoundaryTestResult {
ovrBool IsTriggering()
;
float ClosestDistance()
;
ovrVector3f
ClosestPoint()
;
ovrVector3f
ClosestPointNormal()
;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionOVRBoundaryTestResult
(ByteBuffer container) Creates aOVRBoundaryTestResult
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRBoundaryTestResult
calloc()
Returns a newOVRBoundaryTestResult
instance allocated withmemCalloc
.static OVRBoundaryTestResult.Buffer
calloc
(int capacity) Returns a newOVRBoundaryTestResult.Buffer
instance allocated withmemCalloc
.static OVRBoundaryTestResult.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newOVRBoundaryTestResult.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRBoundaryTestResult
calloc
(MemoryStack stack) Returns a newOVRBoundaryTestResult
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRBoundaryTestResult
Deprecated.static OVRBoundaryTestResult.Buffer
callocStack
(int capacity) Deprecated.static OVRBoundaryTestResult.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static OVRBoundaryTestResult
callocStack
(MemoryStack stack) Deprecated.float
Distance to the closest play area or outer boundary surfaceClosest point on the boundary surfaceUnit surface normal of the closest boundary surfacestatic OVRBoundaryTestResult
create()
Returns a newOVRBoundaryTestResult
instance allocated withBufferUtils
.static OVRBoundaryTestResult.Buffer
create
(int capacity) Returns a newOVRBoundaryTestResult.Buffer
instance allocated withBufferUtils
.static OVRBoundaryTestResult
create
(long address) Returns a newOVRBoundaryTestResult
instance for the specified memory address.static OVRBoundaryTestResult.Buffer
create
(long address, int capacity) Create aOVRBoundaryTestResult.Buffer
instance at the specified memory.static OVRBoundaryTestResult
createSafe
(long address) static OVRBoundaryTestResult.Buffer
createSafe
(long address, int capacity) boolean
True if the boundary system is being triggered.static OVRBoundaryTestResult
malloc()
Returns a newOVRBoundaryTestResult
instance allocated withmemAlloc
.static OVRBoundaryTestResult.Buffer
malloc
(int capacity) Returns a newOVRBoundaryTestResult.Buffer
instance allocated withmemAlloc
.static OVRBoundaryTestResult.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newOVRBoundaryTestResult.Buffer
instance allocated on the specifiedMemoryStack
.static OVRBoundaryTestResult
malloc
(MemoryStack stack) Returns a newOVRBoundaryTestResult
instance allocated on the specifiedMemoryStack
.static OVRBoundaryTestResult
Deprecated.static OVRBoundaryTestResult.Buffer
mallocStack
(int capacity) Deprecated.static OVRBoundaryTestResult.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static OVRBoundaryTestResult
mallocStack
(MemoryStack stack) Deprecated.static float
nClosestDistance
(long struct) Unsafe version ofClosestDistance()
.static OVRVector3f
nClosestPoint
(long struct) Unsafe version ofClosestPoint()
.static OVRVector3f
nClosestPointNormal
(long struct) Unsafe version ofClosestPointNormal()
.static boolean
nIsTriggering
(long struct) Unsafe version ofIsTriggering()
.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
ISTRIGGERING
public static final int ISTRIGGERINGThe struct member offsets. -
CLOSESTDISTANCE
public static final int CLOSESTDISTANCEThe struct member offsets. -
CLOSESTPOINT
public static final int CLOSESTPOINTThe struct member offsets. -
CLOSESTPOINTNORMAL
public static final int CLOSESTPOINTNORMALThe struct member offsets.
-
-
Constructor Details
-
OVRBoundaryTestResult
Creates aOVRBoundaryTestResult
instance at the current position of the specifiedByteBuffer
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<OVRBoundaryTestResult>
-
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
Closest point on the boundary surface -
ClosestPointNormal
Unit surface normal of the closest boundary surface -
malloc
Returns a newOVRBoundaryTestResult
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newOVRBoundaryTestResult
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newOVRBoundaryTestResult
instance allocated withBufferUtils
. -
create
Returns a newOVRBoundaryTestResult
instance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRBoundaryTestResult.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newOVRBoundaryTestResult.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newOVRBoundaryTestResult.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aOVRBoundaryTestResult.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newOVRBoundaryTestResult
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newOVRBoundaryTestResult
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newOVRBoundaryTestResult.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newOVRBoundaryTestResult.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nIsTriggering
public static boolean nIsTriggering(long struct) Unsafe version ofIsTriggering()
. -
nClosestDistance
public static float nClosestDistance(long struct) Unsafe version ofClosestDistance()
. -
nClosestPoint
Unsafe version ofClosestPoint()
. -
nClosestPointNormal
Unsafe version ofClosestPointNormal()
.
-