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.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 surfaceClosestPoint
– Closest point on the boundary surfaceClosestPointNormal
– Unit surface normal of the closest boundary surface
Layout
struct ovrBoundaryTestResult { ovrBool IsTriggering; float ClosestDistance;
ovrVector3f
ClosestPoint;ovrVector3f
ClosestPointNormal; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OVRBoundaryTestResult.Buffer
An array ofOVRBoundaryTestResult
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
CLOSESTDISTANCE
CLOSESTPOINT
CLOSESTPOINTNORMAL
ISTRIGGERINGThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description OVRBoundaryTestResult(java.nio.ByteBuffer container)
Creates aOVRBoundaryTestResult
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static OVRBoundaryTestResult
calloc()
Returns a newOVRBoundaryTestResult
instance allocated withmemCalloc
.static OVRBoundaryTestResult.Buffer
calloc(int capacity)
Returns a newOVRBoundaryTestResult.Buffer
instance allocated withmemCalloc
.static OVRBoundaryTestResult
callocStack()
Returns a newOVRBoundaryTestResult
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRBoundaryTestResult.Buffer
callocStack(int capacity)
Returns a newOVRBoundaryTestResult.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static OVRBoundaryTestResult.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRBoundaryTestResult.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static OVRBoundaryTestResult
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRBoundaryTestResult
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.float
ClosestDistance()
Returns the value of theClosestDistance
field.OVRVector3f
ClosestPoint()
Returns aOVRVector3f
view of theClosestPoint
field.OVRVector3f
ClosestPointNormal()
Returns aOVRVector3f
view of theClosestPointNormal
field.static 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
IsTriggering()
Returns the value of theIsTriggering
field.static OVRBoundaryTestResult
malloc()
Returns a newOVRBoundaryTestResult
instance allocated withmemAlloc
.static OVRBoundaryTestResult.Buffer
malloc(int capacity)
Returns a newOVRBoundaryTestResult.Buffer
instance allocated withmemAlloc
.static OVRBoundaryTestResult
mallocStack()
Returns a newOVRBoundaryTestResult
instance allocated on the thread-localMemoryStack
.static OVRBoundaryTestResult.Buffer
mallocStack(int capacity)
Returns a newOVRBoundaryTestResult.Buffer
instance allocated on the thread-localMemoryStack
.static OVRBoundaryTestResult.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newOVRBoundaryTestResult.Buffer
instance allocated on the specifiedMemoryStack
.static OVRBoundaryTestResult
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRBoundaryTestResult
instance allocated on the specifiedMemoryStack
.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()
-
-
-
Constructor Detail
-
OVRBoundaryTestResult
public OVRBoundaryTestResult(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
IsTriggering
public boolean IsTriggering()
Returns the value of theIsTriggering
field.
-
ClosestDistance
public float ClosestDistance()
Returns the value of theClosestDistance
field.
-
ClosestPoint
public OVRVector3f ClosestPoint()
Returns aOVRVector3f
view of theClosestPoint
field.
-
ClosestPointNormal
public OVRVector3f ClosestPointNormal()
Returns aOVRVector3f
view of theClosestPointNormal
field.
-
malloc
public static OVRBoundaryTestResult malloc()
Returns a newOVRBoundaryTestResult
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static OVRBoundaryTestResult calloc()
Returns a newOVRBoundaryTestResult
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static OVRBoundaryTestResult create()
Returns a newOVRBoundaryTestResult
instance allocated withBufferUtils
.
-
create
public static OVRBoundaryTestResult create(long address)
Returns a newOVRBoundaryTestResult
instance for the specified memory address.
-
createSafe
@Nullable public static OVRBoundaryTestResult createSafe(long address)
-
malloc
public static OVRBoundaryTestResult.Buffer malloc(int capacity)
Returns a newOVRBoundaryTestResult.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static OVRBoundaryTestResult.Buffer calloc(int capacity)
Returns a newOVRBoundaryTestResult.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRBoundaryTestResult.Buffer create(int capacity)
Returns a newOVRBoundaryTestResult.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static OVRBoundaryTestResult.Buffer create(long address, int capacity)
Create aOVRBoundaryTestResult.Buffer
instance 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 newOVRBoundaryTestResult
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static OVRBoundaryTestResult callocStack()
Returns a newOVRBoundaryTestResult
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static OVRBoundaryTestResult mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRBoundaryTestResult
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static OVRBoundaryTestResult callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newOVRBoundaryTestResult
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static OVRBoundaryTestResult.Buffer callocStack(int capacity)
Returns a newOVRBoundaryTestResult.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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()
.
-
-