Package org.lwjgl.ovr
Class OVRBoundaryTestResult
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<OVRBoundaryTestResult>
org.lwjgl.ovr.OVRBoundaryTestResult
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class OVRBoundaryTestResult
extends org.lwjgl.system.Struct<OVRBoundaryTestResult>
implements org.lwjgl.system.NativeResource
Provides boundary test information.
Layout
struct ovrBoundaryTestResult {
ovrBool IsTriggering();
float ClosestDistance();
ovrVector3f ClosestPoint();
ovrVector3f ClosestPointNormal();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionOVRBoundaryTestResult(ByteBuffer container) Creates aOVRBoundaryTestResultinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic OVRBoundaryTestResultcalloc()Returns a newOVRBoundaryTestResultinstance allocated withmemCalloc.static OVRBoundaryTestResult.Buffercalloc(int capacity) Returns a newOVRBoundaryTestResult.Bufferinstance allocated withmemCalloc.static OVRBoundaryTestResult.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRBoundaryTestResult.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRBoundaryTestResultcalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRBoundaryTestResultinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRBoundaryTestResultDeprecated.static OVRBoundaryTestResult.BuffercallocStack(int capacity) Deprecated.static OVRBoundaryTestResult.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRBoundaryTestResultcallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.floatDistance to the closest play area or outer boundary surfaceClosest point on the boundary surfaceUnit surface normal of the closest boundary surfacestatic OVRBoundaryTestResultcreate()Returns a newOVRBoundaryTestResultinstance allocated withBufferUtils.static OVRBoundaryTestResult.Buffercreate(int capacity) Returns a newOVRBoundaryTestResult.Bufferinstance allocated withBufferUtils.static OVRBoundaryTestResultcreate(long address) Returns a newOVRBoundaryTestResultinstance for the specified memory address.static OVRBoundaryTestResult.Buffercreate(long address, int capacity) Create aOVRBoundaryTestResult.Bufferinstance at the specified memory.static @Nullable OVRBoundaryTestResultcreateSafe(long address) static @Nullable OVRBoundaryTestResult.BuffercreateSafe(long address, int capacity) booleanTrue if the boundary system is being triggered.static OVRBoundaryTestResultmalloc()Returns a newOVRBoundaryTestResultinstance allocated withmemAlloc.static OVRBoundaryTestResult.Buffermalloc(int capacity) Returns a newOVRBoundaryTestResult.Bufferinstance allocated withmemAlloc.static OVRBoundaryTestResult.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newOVRBoundaryTestResult.Bufferinstance allocated on the specifiedMemoryStack.static OVRBoundaryTestResultmalloc(org.lwjgl.system.MemoryStack stack) Returns a newOVRBoundaryTestResultinstance allocated on the specifiedMemoryStack.static OVRBoundaryTestResultDeprecated.static OVRBoundaryTestResult.BuffermallocStack(int capacity) Deprecated.static OVRBoundaryTestResult.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static OVRBoundaryTestResultmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static floatnClosestDistance(long struct) Unsafe version ofClosestDistance().static OVRVector3fnClosestPoint(long struct) Unsafe version ofClosestPoint().static OVRVector3fnClosestPointNormal(long struct) Unsafe version ofClosestPointNormal().static booleannIsTriggering(long struct) Unsafe version ofIsTriggering().intsizeof()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aOVRBoundaryTestResultinstance at the current position of the specifiedByteBuffercontainer. 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<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 newOVRBoundaryTestResultinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newOVRBoundaryTestResultinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newOVRBoundaryTestResultinstance allocated withBufferUtils. -
create
Returns a newOVRBoundaryTestResultinstance for the specified memory address. -
createSafe
-
malloc
Returns a newOVRBoundaryTestResult.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newOVRBoundaryTestResult.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newOVRBoundaryTestResult.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aOVRBoundaryTestResult.Bufferinstance 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 public static OVRBoundaryTestResult.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
@Deprecated public static OVRBoundaryTestResult.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newOVRBoundaryTestResultinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newOVRBoundaryTestResultinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newOVRBoundaryTestResult.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newOVRBoundaryTestResult.Bufferinstance allocated on the specifiedMemoryStackand 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().
-