Package org.lwjgl.openvr
Class VROverlayIntersectionParams
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VROverlayIntersectionParams>
org.lwjgl.openvr.VROverlayIntersectionParams
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VROverlayIntersectionParams
extends org.lwjgl.system.Struct<VROverlayIntersectionParams>
implements org.lwjgl.system.NativeResource
Layout
struct VROverlayIntersectionParams_t {
HmdVector3_t vSource;
HmdVector3_t vDirection;
ETrackingUniverseOrigin eOrigin;
}-
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.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVROverlayIntersectionParams(ByteBuffer container) Creates aVROverlayIntersectionParamsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VROverlayIntersectionParamscalloc()Returns a newVROverlayIntersectionParamsinstance allocated withmemCalloc.calloc(int capacity) Returns a newVROverlayIntersectionParams.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVROverlayIntersectionParams.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VROverlayIntersectionParamscalloc(org.lwjgl.system.MemoryStack stack) Returns a newVROverlayIntersectionParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VROverlayIntersectionParamsDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VROverlayIntersectionParamscallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static VROverlayIntersectionParamscreate()Returns a newVROverlayIntersectionParamsinstance allocated withBufferUtils.create(int capacity) Returns a newVROverlayIntersectionParams.Bufferinstance allocated withBufferUtils.static VROverlayIntersectionParamscreate(long address) Returns a newVROverlayIntersectionParamsinstance for the specified memory address.create(long address, int capacity) Create aVROverlayIntersectionParams.Bufferinstance at the specified memory.static @Nullable VROverlayIntersectionParamscreateSafe(long address) static @Nullable VROverlayIntersectionParams.BuffercreateSafe(long address, int capacity) inteOrigin()eOrigin(int value) Sets the specified value to theeOriginfield.static VROverlayIntersectionParamsmalloc()Returns a newVROverlayIntersectionParamsinstance allocated withmemAlloc.malloc(int capacity) Returns a newVROverlayIntersectionParams.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVROverlayIntersectionParams.Bufferinstance allocated on the specifiedMemoryStack.static VROverlayIntersectionParamsmalloc(org.lwjgl.system.MemoryStack stack) Returns a newVROverlayIntersectionParamsinstance allocated on the specifiedMemoryStack.static VROverlayIntersectionParamsDeprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static VROverlayIntersectionParamsmallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static intneOrigin(long struct) Unsafe version ofeOrigin().static voidneOrigin(long struct, int value) Unsafe version ofeOrigin.static HmdVector3nvDirection(long struct) Unsafe version ofvDirection().static voidnvDirection(long struct, HmdVector3 value) Unsafe version ofvDirection.static HmdVector3nvSource(long struct) Unsafe version ofvSource().static voidnvSource(long struct, HmdVector3 value) Unsafe version ofvSource.set(HmdVector3 vSource, HmdVector3 vDirection, int eOrigin) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()vDirection(Consumer<HmdVector3> consumer) Passes thevDirectionfield to the specifiedConsumer.vDirection(HmdVector3 value) Copies the specifiedHmdVector3to thevDirectionfield.vSource()vSource(Consumer<HmdVector3> consumer) Passes thevSourcefield to the specifiedConsumer.vSource(HmdVector3 value) Copies the specifiedHmdVector3to thevSourcefield.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. -
VSOURCE
public static final int VSOURCEThe struct member offsets. -
VDIRECTION
public static final int VDIRECTIONThe struct member offsets. -
EORIGIN
public static final int EORIGINThe struct member offsets.
-
-
Constructor Details
-
VROverlayIntersectionParams
Creates aVROverlayIntersectionParamsinstance 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<VROverlayIntersectionParams>
-
vSource
- Returns:
- a
HmdVector3view of thevSourcefield.
-
vDirection
- Returns:
- a
HmdVector3view of thevDirectionfield.
-
eOrigin
public int eOrigin()- Returns:
- the value of the
eOriginfield.
-
vSource
Copies the specifiedHmdVector3to thevSourcefield. -
vSource
Passes thevSourcefield to the specifiedConsumer. -
vDirection
Copies the specifiedHmdVector3to thevDirectionfield. -
vDirection
Passes thevDirectionfield to the specifiedConsumer. -
eOrigin
Sets the specified value to theeOriginfield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVROverlayIntersectionParamsinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVROverlayIntersectionParamsinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVROverlayIntersectionParamsinstance allocated withBufferUtils. -
create
Returns a newVROverlayIntersectionParamsinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVROverlayIntersectionParams.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVROverlayIntersectionParams.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVROverlayIntersectionParams.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVROverlayIntersectionParams.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 VROverlayIntersectionParams mallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
@Deprecated public static VROverlayIntersectionParams 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 VROverlayIntersectionParams.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 VROverlayIntersectionParams.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVROverlayIntersectionParamsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVROverlayIntersectionParamsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VROverlayIntersectionParams.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVROverlayIntersectionParams.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VROverlayIntersectionParams.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVROverlayIntersectionParams.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nvSource
Unsafe version ofvSource(). -
nvDirection
Unsafe version ofvDirection(). -
neOrigin
public static int neOrigin(long struct) Unsafe version ofeOrigin(). -
nvSource
Unsafe version ofvSource. -
nvDirection
Unsafe version ofvDirection. -
neOrigin
public static void neOrigin(long struct, int value) Unsafe version ofeOrigin.
-