Package org.lwjgl.openvr
Class VROverlayIntersectionParams
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VROverlayIntersectionParams
extends Struct<VROverlayIntersectionParams>
implements NativeResource
Layout
struct VROverlayIntersectionParams_t {
HmdVector3_t
vSource;
HmdVector3_t
vDirection;
ETrackingUniverseOrigin eOrigin;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionVROverlayIntersectionParams
(ByteBuffer container) Creates aVROverlayIntersectionParams
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VROverlayIntersectionParams
calloc()
Returns a newVROverlayIntersectionParams
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVROverlayIntersectionParams.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVROverlayIntersectionParams.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VROverlayIntersectionParams
calloc
(MemoryStack stack) Returns a newVROverlayIntersectionParams
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VROverlayIntersectionParams
Deprecated.callocStack
(int capacity) Deprecated.callocStack
(int capacity, MemoryStack stack) Deprecated.static VROverlayIntersectionParams
callocStack
(MemoryStack stack) Deprecated.static VROverlayIntersectionParams
create()
Returns a newVROverlayIntersectionParams
instance allocated withBufferUtils
.create
(int capacity) Returns a newVROverlayIntersectionParams.Buffer
instance allocated withBufferUtils
.static VROverlayIntersectionParams
create
(long address) Returns a newVROverlayIntersectionParams
instance for the specified memory address.create
(long address, int capacity) Create aVROverlayIntersectionParams.Buffer
instance at the specified memory.static VROverlayIntersectionParams
createSafe
(long address) createSafe
(long address, int capacity) int
eOrigin()
eOrigin
(int value) Sets the specified value to theeOrigin
field.static VROverlayIntersectionParams
malloc()
Returns a newVROverlayIntersectionParams
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVROverlayIntersectionParams.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVROverlayIntersectionParams.Buffer
instance allocated on the specifiedMemoryStack
.static VROverlayIntersectionParams
malloc
(MemoryStack stack) Returns a newVROverlayIntersectionParams
instance allocated on the specifiedMemoryStack
.static VROverlayIntersectionParams
Deprecated.mallocStack
(int capacity) Deprecated.mallocStack
(int capacity, MemoryStack stack) Deprecated.static VROverlayIntersectionParams
mallocStack
(MemoryStack stack) Deprecated.static int
neOrigin
(long struct) Unsafe version ofeOrigin()
.static void
neOrigin
(long struct, int value) Unsafe version ofeOrigin
.static HmdVector3
nvDirection
(long struct) Unsafe version ofvDirection()
.static void
nvDirection
(long struct, HmdVector3 value) Unsafe version ofvDirection
.static HmdVector3
nvSource
(long struct) Unsafe version ofvSource()
.static void
nvSource
(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.int
sizeof()
Returnssizeof(struct)
.vDirection
(Consumer<HmdVector3> consumer) Passes thevDirection
field to the specifiedConsumer
.vDirection
(HmdVector3 value) Copies the specifiedHmdVector3
to thevDirection
field.vSource()
vSource
(Consumer<HmdVector3> consumer) Passes thevSource
field to the specifiedConsumer
.vSource
(HmdVector3 value) Copies the specifiedHmdVector3
to thevSource
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aVROverlayIntersectionParams
instance at the current position of the specifiedByteBuffer
container. 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()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VROverlayIntersectionParams>
-
vSource
- Returns:
- a
HmdVector3
view of thevSource
field.
-
vDirection
- Returns:
- a
HmdVector3
view of thevDirection
field.
-
eOrigin
public int eOrigin()- Returns:
- the value of the
eOrigin
field.
-
vSource
Copies the specifiedHmdVector3
to thevSource
field. -
vSource
Passes thevSource
field to the specifiedConsumer
. -
vDirection
Copies the specifiedHmdVector3
to thevDirection
field. -
vDirection
Passes thevDirection
field to the specifiedConsumer
. -
eOrigin
Sets the specified value to theeOrigin
field. -
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 newVROverlayIntersectionParams
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVROverlayIntersectionParams
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVROverlayIntersectionParams
instance allocated withBufferUtils
. -
create
Returns a newVROverlayIntersectionParams
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVROverlayIntersectionParams.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVROverlayIntersectionParams.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVROverlayIntersectionParams.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVROverlayIntersectionParams.Buffer
instance 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.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
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, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
@Deprecated public static VROverlayIntersectionParams.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVROverlayIntersectionParams
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVROverlayIntersectionParams
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVROverlayIntersectionParams.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVROverlayIntersectionParams.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-