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.Layout
struct ovrBoundaryTestResult { ovrBoolIsTriggering(); floatClosestDistance();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 Deprecated 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 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 OVRBoundaryTestResultcallocStack()Deprecated.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.floatClosestDistance()Distance to the closest play area or outer boundary surfaceOVRVector3fClosestPoint()Closest point on the boundary surfaceOVRVector3fClosestPointNormal()Unit 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 OVRBoundaryTestResultcreateSafe(long address)static OVRBoundaryTestResult.BuffercreateSafe(long address, int capacity)booleanIsTriggering()True 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 OVRBoundaryTestResultmallocStack()Deprecated.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()
-
-
-
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()
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 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
@Deprecated public static OVRBoundaryTestResult mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRBoundaryTestResult callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRBoundaryTestResult mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static OVRBoundaryTestResult callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static OVRBoundaryTestResult.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static OVRBoundaryTestResult.Buffer callocStack(int capacity)
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
public static OVRBoundaryTestResult malloc(org.lwjgl.system.MemoryStack stack)
Returns a newOVRBoundaryTestResultinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static OVRBoundaryTestResult calloc(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
-
malloc
public static OVRBoundaryTestResult.Buffer malloc(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
-
calloc
public static OVRBoundaryTestResult.Buffer calloc(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().
-
-