Package org.lwjgl.openvr
Class VROverlayIntersectionResults
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VROverlayIntersectionResults>
org.lwjgl.openvr.VROverlayIntersectionResults
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VROverlayIntersectionResults
extends org.lwjgl.system.Struct<VROverlayIntersectionResults>
implements org.lwjgl.system.NativeResource
Layout
struct VROverlayIntersectionResults_t {
HmdVector3_t vPoint;
HmdVector3_t vNormal;
HmdVector2_t vUVs;
float fDistance;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVROverlayIntersectionResults(ByteBuffer container) Creates aVROverlayIntersectionResultsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VROverlayIntersectionResultscalloc()Returns a newVROverlayIntersectionResultsinstance allocated withmemCalloc.calloc(int capacity) Returns a newVROverlayIntersectionResults.Bufferinstance allocated withmemCalloc.calloc(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 VROverlayIntersectionResultsDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VROverlayIntersectionResultscallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static VROverlayIntersectionResultscreate()Returns a newVROverlayIntersectionResultsinstance allocated withBufferUtils.create(int capacity) Returns a newVROverlayIntersectionResults.Bufferinstance allocated withBufferUtils.static VROverlayIntersectionResultscreate(long address) Returns a newVROverlayIntersectionResultsinstance for the specified memory address.create(long address, int capacity) Create aVROverlayIntersectionResults.Bufferinstance at the specified memory.static @Nullable VROverlayIntersectionResultscreateSafe(long address) static @Nullable VROverlayIntersectionResults.BuffercreateSafe(long address, int capacity) floatstatic VROverlayIntersectionResultsmalloc()Returns a newVROverlayIntersectionResultsinstance allocated withmemAlloc.malloc(int capacity) Returns a newVROverlayIntersectionResults.Bufferinstance allocated withmemAlloc.malloc(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 VROverlayIntersectionResultsDeprecated.mallocStack(int capacity) Deprecated.mallocStack(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()vNormal()vPoint()vUVs()Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
VPOINT
public static final int VPOINTThe struct member offsets. -
VNORMAL
public static final int VNORMALThe struct member offsets. -
VUVS
public static final int VUVSThe struct member offsets. -
FDISTANCE
public static final int FDISTANCEThe struct member offsets.
-
-
Constructor Details
-
VROverlayIntersectionResults
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VROverlayIntersectionResults>
-
vPoint
- Returns:
- a
HmdVector3view of thevPointfield.
-
vNormal
- Returns:
- a
HmdVector3view of thevNormalfield.
-
vUVs
- Returns:
- a
HmdVector2view of thevUVsfield.
-
fDistance
public float fDistance()- Returns:
- the value of the
fDistancefield.
-
malloc
Returns a newVROverlayIntersectionResultsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVROverlayIntersectionResultsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVROverlayIntersectionResultsinstance allocated withBufferUtils. -
create
Returns a newVROverlayIntersectionResultsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVROverlayIntersectionResults.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVROverlayIntersectionResults.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVROverlayIntersectionResults.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVROverlayIntersectionResults.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
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.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
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
Returns a newVROverlayIntersectionResultsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
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:
capacity- the buffer capacitystack- the stack from which to allocate
-
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:
capacity- the buffer capacitystack- the stack from which to allocate
-
nvPoint
Unsafe version ofvPoint(). -
nvNormal
Unsafe version ofvNormal(). -
nvUVs
Unsafe version ofvUVs(). -
nfDistance
public static float nfDistance(long struct) Unsafe version offDistance().
-