Package org.lwjgl.openvr
Class VROverlayIntersectionResults
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.openvr.VROverlayIntersectionResults
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VROverlayIntersectionResults extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct VROverlayIntersectionResults_t {HmdVector3_tvPoint;HmdVector3_tvNormal;HmdVector2_tvUVs; float fDistance; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVROverlayIntersectionResults.BufferAn array ofVROverlayIntersectionResultsstructs.
-
Constructor Summary
Constructors Constructor Description VROverlayIntersectionResults(java.nio.ByteBuffer container)Creates aVROverlayIntersectionResultsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VROverlayIntersectionResultscalloc()Returns a newVROverlayIntersectionResultsinstance allocated withmemCalloc.static VROverlayIntersectionResults.Buffercalloc(int capacity)Returns a newVROverlayIntersectionResults.Bufferinstance allocated withmemCalloc.static VROverlayIntersectionResultscallocStack()Returns a newVROverlayIntersectionResultsinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VROverlayIntersectionResults.BuffercallocStack(int capacity)Returns a newVROverlayIntersectionResults.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VROverlayIntersectionResults.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionResults.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VROverlayIntersectionResultscallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionResultsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VROverlayIntersectionResultscreate()Returns a newVROverlayIntersectionResultsinstance allocated withBufferUtils.static VROverlayIntersectionResults.Buffercreate(int capacity)Returns a newVROverlayIntersectionResults.Bufferinstance allocated withBufferUtils.static VROverlayIntersectionResultscreate(long address)Returns a newVROverlayIntersectionResultsinstance for the specified memory address.static VROverlayIntersectionResults.Buffercreate(long address, int capacity)Create aVROverlayIntersectionResults.Bufferinstance at the specified memory.static VROverlayIntersectionResultscreateSafe(long address)static VROverlayIntersectionResults.BuffercreateSafe(long address, int capacity)floatfDistance()Returns the value of thefDistancefield.static VROverlayIntersectionResultsmalloc()Returns a newVROverlayIntersectionResultsinstance allocated withmemAlloc.static VROverlayIntersectionResults.Buffermalloc(int capacity)Returns a newVROverlayIntersectionResults.Bufferinstance allocated withmemAlloc.static VROverlayIntersectionResultsmallocStack()Returns a newVROverlayIntersectionResultsinstance allocated on the thread-localMemoryStack.static VROverlayIntersectionResults.BuffermallocStack(int capacity)Returns a newVROverlayIntersectionResults.Bufferinstance allocated on the thread-localMemoryStack.static VROverlayIntersectionResults.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionResults.Bufferinstance allocated on the specifiedMemoryStack.static VROverlayIntersectionResultsmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionResultsinstance allocated on the specifiedMemoryStack.static floatnfDistance(long struct)Unsafe version offDistance().static HmdVector3nvNormal(long struct)Unsafe version ofvNormal().static HmdVector3nvPoint(long struct)Unsafe version ofvPoint().static HmdVector2nvUVs(long struct)Unsafe version ofvUVs().intsizeof()HmdVector3vNormal()Returns aHmdVector3view of thevNormalfield.HmdVector3vPoint()Returns aHmdVector3view of thevPointfield.HmdVector2vUVs()Returns aHmdVector2view of thevUVsfield.
-
-
-
Constructor Detail
-
VROverlayIntersectionResults
public VROverlayIntersectionResults(java.nio.ByteBuffer container)
Creates aVROverlayIntersectionResultsinstance 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
-
vPoint
public HmdVector3 vPoint()
Returns aHmdVector3view of thevPointfield.
-
vNormal
public HmdVector3 vNormal()
Returns aHmdVector3view of thevNormalfield.
-
vUVs
public HmdVector2 vUVs()
Returns aHmdVector2view of thevUVsfield.
-
fDistance
public float fDistance()
Returns the value of thefDistancefield.
-
malloc
public static VROverlayIntersectionResults malloc()
Returns a newVROverlayIntersectionResultsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VROverlayIntersectionResults calloc()
Returns a newVROverlayIntersectionResultsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VROverlayIntersectionResults create()
Returns a newVROverlayIntersectionResultsinstance allocated withBufferUtils.
-
create
public static VROverlayIntersectionResults create(long address)
Returns a newVROverlayIntersectionResultsinstance for the specified memory address.
-
createSafe
@Nullable public static VROverlayIntersectionResults createSafe(long address)
-
malloc
public static VROverlayIntersectionResults.Buffer malloc(int capacity)
Returns a newVROverlayIntersectionResults.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VROverlayIntersectionResults.Buffer calloc(int capacity)
Returns a newVROverlayIntersectionResults.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VROverlayIntersectionResults.Buffer create(int capacity)
Returns a newVROverlayIntersectionResults.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VROverlayIntersectionResults.Buffer create(long address, int capacity)
Create aVROverlayIntersectionResults.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VROverlayIntersectionResults.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VROverlayIntersectionResults mallocStack()
Returns a newVROverlayIntersectionResultsinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VROverlayIntersectionResults callocStack()
Returns a newVROverlayIntersectionResultsinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VROverlayIntersectionResults mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionResultsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VROverlayIntersectionResults callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionResultsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VROverlayIntersectionResults.Buffer mallocStack(int capacity)
Returns a newVROverlayIntersectionResults.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VROverlayIntersectionResults.Buffer callocStack(int capacity)
Returns a newVROverlayIntersectionResults.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VROverlayIntersectionResults.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionResults.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VROverlayIntersectionResults.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionResults.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nvPoint
public static HmdVector3 nvPoint(long struct)
Unsafe version ofvPoint().
-
nvNormal
public static HmdVector3 nvNormal(long struct)
Unsafe version ofvNormal().
-
nvUVs
public static HmdVector2 nvUVs(long struct)
Unsafe version ofvUVs().
-
nfDistance
public static float nfDistance(long struct)
Unsafe version offDistance().
-
-