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 Deprecated 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 VROverlayIntersectionResults.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionResults.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VROverlayIntersectionResultscalloc(org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionResultsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VROverlayIntersectionResultscallocStack()Deprecated.static VROverlayIntersectionResults.BuffercallocStack(int capacity)Deprecated.static VROverlayIntersectionResults.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VROverlayIntersectionResultscallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()static VROverlayIntersectionResultsmalloc()Returns a newVROverlayIntersectionResultsinstance allocated withmemAlloc.static VROverlayIntersectionResults.Buffermalloc(int capacity)Returns a newVROverlayIntersectionResults.Bufferinstance allocated withmemAlloc.static VROverlayIntersectionResults.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionResults.Bufferinstance allocated on the specifiedMemoryStack.static VROverlayIntersectionResultsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVROverlayIntersectionResultsinstance allocated on the specifiedMemoryStack.static VROverlayIntersectionResultsmallocStack()Deprecated.static VROverlayIntersectionResults.BuffermallocStack(int capacity)Deprecated.static VROverlayIntersectionResults.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VROverlayIntersectionResultsmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()HmdVector3vPoint()HmdVector2vUVs()
-
-
-
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:
- a
HmdVector3view of thevPointfield.
-
vNormal
public HmdVector3 vNormal()
- Returns:
- a
HmdVector3view of thevNormalfield.
-
vUVs
public HmdVector2 vUVs()
- Returns:
- a
HmdVector2view of thevUVsfield.
-
fDistance
public float fDistance()
- Returns:
- the value of the
fDistancefield.
-
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
@Deprecated public static VROverlayIntersectionResults mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VROverlayIntersectionResults callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VROverlayIntersectionResults mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VROverlayIntersectionResults callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VROverlayIntersectionResults.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VROverlayIntersectionResults.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VROverlayIntersectionResults.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 VROverlayIntersectionResults.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VROverlayIntersectionResults malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVROverlayIntersectionResultsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VROverlayIntersectionResults calloc(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
-
malloc
public static VROverlayIntersectionResults.Buffer malloc(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
-
calloc
public static VROverlayIntersectionResults.Buffer calloc(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().
-
-