Package org.lwjgl.ovr
Class OVRBoundaryTestResult
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.ovr.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.NativeResourceProvides 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 surfaceClosestPoint– Closest point on the boundary surfaceClosestPointNormal– Unit surface normal of the closest boundary surface
Layout
struct ovrBoundaryTestResult { ovrBool IsTriggering; float ClosestDistance;ovrVector3fClosestPoint;ovrVector3fClosestPointNormal; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOVRBoundaryTestResult.BufferAn array ofOVRBoundaryTestResultstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCLOSESTDISTANCE
CLOSESTPOINT
CLOSESTPOINTNORMAL
ISTRIGGERINGThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description OVRBoundaryTestResult(java.nio.ByteBuffer container)Creates aOVRBoundaryTestResultinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OVRBoundaryTestResultcalloc()Returns a newOVRBoundaryTestResultinstance allocated withmemCalloc.static OVRBoundaryTestResult.Buffercalloc(int capacity)Returns a newOVRBoundaryTestResult.Bufferinstance allocated withmemCalloc.static OVRBoundaryTestResultcallocStack()Returns a newOVRBoundaryTestResultinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRBoundaryTestResult.BuffercallocStack(int capacity)Returns a newOVRBoundaryTestResult.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static OVRBoundaryTestResult.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRBoundaryTestResult.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static OVRBoundaryTestResultcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRBoundaryTestResultinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.floatClosestDistance()Returns the value of theClosestDistancefield.OVRVector3fClosestPoint()Returns aOVRVector3fview of theClosestPointfield.OVRVector3fClosestPointNormal()Returns aOVRVector3fview of theClosestPointNormalfield.static 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 OVRBoundaryTestResultcreateSafe(long address)static OVRBoundaryTestResult.BuffercreateSafe(long address, int capacity)booleanIsTriggering()Returns the value of theIsTriggeringfield.static OVRBoundaryTestResultmalloc()Returns a newOVRBoundaryTestResultinstance allocated withmemAlloc.static OVRBoundaryTestResult.Buffermalloc(int capacity)Returns a newOVRBoundaryTestResult.Bufferinstance allocated withmemAlloc.static OVRBoundaryTestResultmallocStack()Returns a newOVRBoundaryTestResultinstance allocated on the thread-localMemoryStack.static OVRBoundaryTestResult.BuffermallocStack(int capacity)Returns a newOVRBoundaryTestResult.Bufferinstance allocated on the thread-localMemoryStack.static OVRBoundaryTestResult.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newOVRBoundaryTestResult.Bufferinstance allocated on the specifiedMemoryStack.static OVRBoundaryTestResultmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newOVRBoundaryTestResultinstance allocated on the specifiedMemoryStack.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()
-
-
-
Constructor Detail
-
OVRBoundaryTestResult
public OVRBoundaryTestResult(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
IsTriggering
public boolean IsTriggering()
Returns the value of theIsTriggeringfield.
-
ClosestDistance
public float ClosestDistance()
Returns the value of theClosestDistancefield.
-
ClosestPoint
public OVRVector3f ClosestPoint()
Returns aOVRVector3fview of theClosestPointfield.
-
ClosestPointNormal
public OVRVector3f ClosestPointNormal()
Returns aOVRVector3fview of theClosestPointNormalfield.
-
malloc
public static OVRBoundaryTestResult malloc()
Returns a newOVRBoundaryTestResultinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static OVRBoundaryTestResult calloc()
Returns a newOVRBoundaryTestResultinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static OVRBoundaryTestResult create()
Returns a newOVRBoundaryTestResultinstance allocated withBufferUtils.
-
create
public static OVRBoundaryTestResult create(long address)
Returns a newOVRBoundaryTestResultinstance for the specified memory address.
-
createSafe
@Nullable public static OVRBoundaryTestResult createSafe(long address)
-
malloc
public static OVRBoundaryTestResult.Buffer malloc(int capacity)
Returns a newOVRBoundaryTestResult.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static OVRBoundaryTestResult.Buffer calloc(int capacity)
Returns a newOVRBoundaryTestResult.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static OVRBoundaryTestResult.Buffer create(int capacity)
Returns a newOVRBoundaryTestResult.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static OVRBoundaryTestResult.Buffer create(long address, int capacity)
Create aOVRBoundaryTestResult.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static OVRBoundaryTestResult.Buffer createSafe(long address, int capacity)
-
mallocStack
public static OVRBoundaryTestResult mallocStack()
Returns a newOVRBoundaryTestResultinstance allocated on the thread-localMemoryStack.
-
callocStack
public static OVRBoundaryTestResult callocStack()
Returns a newOVRBoundaryTestResultinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static OVRBoundaryTestResult mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRBoundaryTestResultinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static OVRBoundaryTestResult callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRBoundaryTestResultinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static OVRBoundaryTestResult.Buffer mallocStack(int capacity)
Returns a newOVRBoundaryTestResult.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static OVRBoundaryTestResult.Buffer callocStack(int capacity)
Returns a newOVRBoundaryTestResult.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static OVRBoundaryTestResult.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRBoundaryTestResult.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static OVRBoundaryTestResult.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRBoundaryTestResult.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nIsTriggering
public static boolean nIsTriggering(long struct)
Unsafe version ofIsTriggering().
-
nClosestDistance
public static float nClosestDistance(long struct)
Unsafe version ofClosestDistance().
-
nClosestPoint
public static OVRVector3f nClosestPoint(long struct)
Unsafe version ofClosestPoint().
-
nClosestPointNormal
public static OVRVector3f nClosestPointNormal(long struct)
Unsafe version ofClosestPointNormal().
-
-